Skip to content

Commit

Permalink
addpatch: cargo-deny
Browse files Browse the repository at this point in the history
Increase test timeout to make build pass.
  • Loading branch information
jaxvanyang authored and felixonmars committed Aug 1, 2024
1 parent 5e4bfd3 commit 28217c3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cargo-deny/riscv64.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- PKGBUILD
+++ PKGBUILD
@@ -21,6 +21,9 @@ sha256sums=('1ed227a49263bd34d65efb0a0dbacd1fc6e550da297e54573b0857af0d6a000e'

prepare() {
cd "$pkgname-$pkgver"
+ # increase test timeout
+ sed -i 's/const TIMEOUT:.*= std::time::Duration::from_secs(30)/const TIMEOUT: std::time::Duration = std::time::Duration::from_secs(160)/' src/test_utils.rs
+
git submodule init
git config submodule."tests/advisory-db/github.com-2f857891b7f43c59".url "${srcdir}/${pkgname}-advisory-db"
git config submodule."tests/advisory-db/github.com-c373669cccc50ac0".url "${srcdir}/${pkgname}-test-advisory-db"

0 comments on commit 28217c3

Please sign in to comment.