]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
ci: print test_network_log contents
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>
Mon, 28 Mar 2022 19:43:31 +0000 (15:43 -0400)
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>
Mon, 28 Mar 2022 19:43:31 +0000 (15:43 -0400)
cat will always print "cat: test_network_log: Is a directory". change it to
head -n -0, which is arguably not the perfect format but is at least somewhat
useful.

scripts/ci/ci-driver.sh

index 09696924ba2054fe47d70dd8b3bce82a0fa4c81c..eea98baae7d996b3653d319781cd2f27f57763be 100755 (executable)
@@ -442,7 +442,7 @@ if [[ "${CHUTNEY}" = "yes" ]]; then
         runcmd "${CHUTNEY_PATH}"/tools/diagnostics.sh || true
         # XXXX These next two should be part of a make target.
         runcmd ls test_network_log || true
-        runcmd cat test_network_log || true
+        runcmd head -n -0 test_network_log/* || true
         FAILED_TESTS="${FAILED_TESTS} chutney"
     fi
     end_section "Chutney"