]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
test-network-run: refactor away test_network_ipv6
authorJim Newsome <jnewsome@torproject.org>
Mon, 18 Nov 2024 16:26:26 +0000 (10:26 -0600)
committerJim Newsome <jnewsome@torproject.org>
Tue, 19 Nov 2024 15:25:35 +0000 (09:25 -0600)
This should be a pure refactor to simplify the logic a bit now that we
no longer probe for IPv6 support.

Makefile.am

index c475ee3a17c5bfafa66d2280036b267aea061919..ed43ec72fca0f52d60cf11a48385d1e260696c0f 100644 (file)
@@ -399,19 +399,9 @@ test-network-run: need-chutney-path test-driver $(TESTING_TOR_BINARY) src/tools/
                echo "Running IPv4 flavors: $(ipv4_flavors)."; \
                flavors="$$flavors $(ipv4_flavors)"; \
        fi; \
-       test_network_ipv6=false; \
-       if test -n "$(ipv6_flavors)" || \
-          test -n "$(ipv6_mixed_flavors)"; then \
-               test_network_ipv6=true; \
-       fi; \
        if test -n "$(ipv6_flavors)"; then \
-               if test "$$test_network_ipv6" = "true"; then \
-                       echo "Running IPv6 flavors: $(ipv6_flavors)."; \
-                       flavors="$$flavors $(ipv6_flavors)"; \
-               else \
-                       echo "Skipping IPv6 flavors: $(ipv6_flavors)."; \
-                       skip_flavors="$$skip_flavors $(ipv6_flavors)"; \
-               fi; \
+               echo "Running IPv6 flavors: $(ipv6_flavors)."; \
+               flavors="$$flavors $(ipv6_flavors)"; \
        fi; \
        test_network_mixed=false; \
        if test -n "$(mixed_flavors)" || \
@@ -432,8 +422,7 @@ test-network-run: need-chutney-path test-driver $(TESTING_TOR_BINARY) src/tools/
                fi; \
        fi; \
        if test -n "$(ipv6_mixed_flavors)"; then \
-               if test "$$test_network_ipv6" = "true" && \
-                  test "$$test_network_mixed" = "true"; then \
+               if test "$$test_network_mixed" = "true"; then \
                        echo "Running IPv6 mixed flavors:" \
                          "$(ipv6_mixed_flavors)."; \
                        flavors="$$flavors $(ipv6_mixed_flavors)"; \