]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Travis: Produce detailed chutney diagnostics
authorteor <teor@torproject.org>
Mon, 17 Feb 2020 07:21:13 +0000 (17:21 +1000)
committerteor <teor@torproject.org>
Mon, 17 Feb 2020 07:21:13 +0000 (17:21 +1000)
When a Travis chutney job fails, use chutney's new "diagnostics.sh" tool
to produce detailed diagnostic output.

Closes ticket 32792.

.travis.yml
changes/ticket32792 [new file with mode: 0644]

index c6468f78f772a602e065a4d5a22eaa5d5679ac3c..16d2e432dfdbadcbf7258a8b560f190a401972b6 100644 (file)
@@ -262,7 +262,7 @@ after_failure:
   ## `make distcheck` puts it somewhere different.
   - if [[ "$DISTCHECK" != "" ]]; then make show-distdir-testlog || echo "make failed"; fi
   - if [[ "$DISTCHECK" != "" ]]; then make show-distdir-core || echo "make failed"; fi
-  - if [[ "$CHUTNEY" != "" ]]; then ls test_network_log || echo "ls failed"; cat test_network_log/* || echo "cat failed"; fi
+  - if [[ "$CHUTNEY" != "" ]]; then "$CHUTNEY_PATH/tools/diagnostics.sh" || echo "diagnostics failed"; ls test_network_log || echo "ls failed"; cat test_network_log/* || echo "cat failed"; fi
   - if [[ "$TEST_STEM" != "" ]]; then tail -1000 "$STEM_SOURCE_DIR"/test/data/tor_log || echo "tail failed"; fi
   - if [[ "$TEST_STEM" != "" ]]; then grep -v "SocketClosed" stem.log | tail -1000 || echo "grep | tail failed"; fi
 
diff --git a/changes/ticket32792 b/changes/ticket32792
new file mode 100644 (file)
index 0000000..553cf0c
--- /dev/null
@@ -0,0 +1,3 @@
+  o Testing:
+    - When a Travis chutney job fails, use chutney's new "diagnostics.sh" tool
+      to produce detailed diagnostic output. Closes ticket 32792.