From: Ximin Luo Date: Wed, 23 Jan 2019 04:08:23 +0000 (-0800) Subject: Try to deal with the various test failures as suggested by upstream X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=8756f8d38eb42f15637a6a6a19a56646f96ea596;p=cargo.git Try to deal with the various test failures as suggested by upstream --- diff --git a/debian/changelog b/debian/changelog index df3c5f8a6..9a298d2f0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +cargo (0.32.0-1~exp2) UNRELEASED; urgency=medium + + * Try to deal with the various test failures as suggested by upstream. + + -- Ximin Luo Tue, 22 Jan 2019 20:07:48 -0800 + cargo (0.32.0-1~exp1) experimental; urgency=medium [ upstream ] diff --git a/debian/patches/1003_increase_timeout_for_slow_arches_like_mips.patch b/debian/patches/1003_increase_timeout_for_slow_arches_like_mips.patch new file mode 100644 index 000000000..c4d6e8bc2 --- /dev/null +++ b/debian/patches/1003_increase_timeout_for_slow_arches_like_mips.patch @@ -0,0 +1,14 @@ +Description: Increase timeout for slow arches like mips +Author: Ximin Luo +Bug: https://github.com/rust-lang/cargo/issues/6491 +--- a/tests/testsuite/support/resolver.rs ++++ b/tests/testsuite/support/resolver.rs +@@ -118,7 +118,7 @@ + + // The largest test in our suite takes less then 30 sec. + // So lets fail the test if we have ben running for two long. +- assert!(start.elapsed() < Duration::from_secs(60)); ++ assert!(start.elapsed() < Duration::from_secs(240)); + resolve + } + diff --git a/debian/patches/series b/debian/patches/series index 84fbe421a..78bdf0900 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,5 +1,6 @@ 1001_fix_inc_exc_tests.patch 1002_fix_doc_tests_order_hash.patch +1003_increase_timeout_for_slow_arches_like_mips.patch 2007_sparc64_disable_incremental_build.patch 2002_disable-net-tests.patch 2005_disable_fetch_cross_tests.patch diff --git a/debian/rules b/debian/rules index 014ae4706..e50ac0528 100755 --- a/debian/rules +++ b/debian/rules @@ -14,6 +14,10 @@ export CARGO_HOME = $(CURDIR)/debian/cargo_home export DEB_CARGO_CRATE=cargo_$(DEB_VERSION_UPSTREAM) export DEB_CARGO_PACKAGE=cargo +# don't shrink, this can take ages +# see https://github.com/rust-lang/cargo/issues/6490 for details +export PROPTEST_MAX_SHRINK_ITERS = 0 + # To run a specific test, run something like: # $ debian/rules override_dh_auto_test-arch \ # CARGO_TEST_FLAGS="package::include -- "