]> 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, 16 Mar 2020 06:04:51 +0000 (16:04 +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 6047c4470ea9b01f15b8a576633d03c977c74f4d..8bc9898f8f7642b9ac2bf79f8c55eee8f30f4d92 100644 (file)
@@ -236,7 +236,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.