]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
make test-network-all exit 1 if any test network fails
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Tue, 8 Sep 2015 17:06:01 +0000 (03:06 +1000)
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>
Tue, 8 Sep 2015 17:06:01 +0000 (03:06 +1000)
Makefile.am

index 68695ede0aa2def255267c93657b96a5642e7896..c226113cc8725035215bfd018fea42c3a742d7b6 100644 (file)
@@ -118,8 +118,9 @@ test-network-all: need-chutney-path all test-driver
        done; \
        for f in $$flavors; do \
                ./test-driver --test-name $$f --log-file $(TEST_NETWORK_ALL_LOG_DIR)/$$f.log --trs-file $(TEST_NETWORK_ALL_LOG_DIR)/$$f.trs $(TEST_NETWORK_ALL_DRIVER_FLAGS) $(top_srcdir)/src/test/test-network.sh --flavor $$f $(TEST_NETWORK_FLAGS); \
-       done
-       @echo "Log and result files are available in $(TEST_NETWORK_ALL_LOG_DIR)."
+       done; \
+       echo "Log and result files are available in $(TEST_NETWORK_ALL_LOG_DIR)."; \
+       ! grep -q FAIL test_network_log/*.trs
 
 need-stem-path:
        @if test ! -d "$$STEM_SOURCE_DIR"; then \