]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Test: avoid spurious failures in make test-network-all
authorteor <teor@torproject.org>
Fri, 24 Aug 2018 00:25:25 +0000 (10:25 +1000)
committerteor <teor@torproject.org>
Wed, 29 Aug 2018 00:47:20 +0000 (10:47 +1000)
Before running make test-network-all, delete old logs and test result
files, to avoid spurious failures.

Fixes bug 27295; bugfix on 0.2.7.3-rc.

Makefile.am
changes/bug27295 [new file with mode: 0644]

index b19a4bf9668b97c7839e08b2964f86d3c9cb90f3..e4be3f26f9c9d3480f099b8f792677fe366e1a27 100644 (file)
@@ -106,6 +106,7 @@ test-network: need-chutney-path $(TESTING_TOR_BINARY) src/tools/tor-gencert
 # Try both the BSD and the Linux ping6 syntax, because they're incompatible
 test-network-all: need-chutney-path test-driver $(TESTING_TOR_BINARY) src/tools/tor-gencert
        mkdir -p $(TEST_NETWORK_ALL_LOG_DIR)
+       rm -f $(TEST_NETWORK_ALL_LOG_DIR)/*.log $(TEST_NETWORK_ALL_LOG_DIR)/*.trs
        @flavors="$(TEST_CHUTNEY_FLAVORS)"; \
        if ping6 -q -c 1 -o ::1 >/dev/null 2>&1 || ping6 -q -c 1 -W 1 ::1 >/dev/null 2>&1; then \
                echo "ping6 ::1 succeeded, running IPv6 flavors: $(TEST_CHUTNEY_FLAVORS_IPV6)."; \
diff --git a/changes/bug27295 b/changes/bug27295
new file mode 100644 (file)
index 0000000..c5a3648
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes (testing, chutney):
+    - Before running make test-network-all, delete old logs and test result
+      files, to avoid spurious failures. Fixes bug 27295; bugfix on 0.2.7.3-rc.