]> git.proxmox.com Git - cargo.git/commitdiff
Attempt to debug a spurious test.
authorEric Huss <eric@huss.org>
Mon, 29 Apr 2019 02:25:24 +0000 (19:25 -0700)
committerEric Huss <eric@huss.org>
Mon, 29 Apr 2019 02:25:24 +0000 (19:25 -0700)
tests/testsuite/test.rs

index 8e31513b03efc95a8c7294d6a0809d6c261b618c..ac4c883a8a19cb8964c0da36ff704b56a4a56ecc 100644 (file)
@@ -3562,13 +3562,13 @@ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
         )
         .run();
 
-    p.cargo("test --doc")
-        .with_stderr(
-            "\
-[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
-[DOCTEST] foo
-",
-        )
+    // This has been modified to attempt to diagnose spurious errors on CI.
+    // For some reason, this is recompiling the lib when it shouldn't. If the
+    // root cause is ever found, the changes here should be reverted.
+    // See https://github.com/rust-lang/cargo/issues/6887
+    p.cargo("test --doc -vv")
+        .with_stderr_does_not_contain("[COMPILING] foo [..]")
+        .with_stderr_contains("[DOCTEST] foo")
         .with_stdout(
             "
 running 1 test
@@ -3578,6 +3578,7 @@ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
 
 ",
         )
+        .env("RUST_LOG", "cargo=trace")
         .run();
 
     p.cargo("test --lib --doc")