You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2020/06/23 07:24:04 UTC

svn commit: r1879103 - /httpd/httpd/trunk/test/travis_before_linux.sh

Author: jorton
Date: Tue Jun 23 07:24:03 2020
New Revision: 1879103

URL: http://svn.apache.org/viewvc?rev=1879103&view=rev
Log:
Add workaround for IPv6 configuration on non-x86 hosts which 
appears to fix the connection failures.  Almost certainly a bug
here, not at all sure where.

Modified:
    httpd/httpd/trunk/test/travis_before_linux.sh

Modified: httpd/httpd/trunk/test/travis_before_linux.sh
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/test/travis_before_linux.sh?rev=1879103&r1=1879102&r2=1879103&view=diff
==============================================================================
--- httpd/httpd/trunk/test/travis_before_linux.sh (original)
+++ httpd/httpd/trunk/test/travis_before_linux.sh Tue Jun 23 07:24:03 2020
@@ -11,6 +11,16 @@ fi
 cat /etc/hosts
 : -- ends
 
+# ### FIXME: This is a workaround, non-x86 builds have an IPv6
+# configuration which somehow breaks the test suite runs.  Appears
+# that Apache::Test only configures the server to Listen on 0.0.0.0
+# (that is hard-coded), but then Apache::TestSerer::wait_till_is_up()
+# tries to connect via ::1, which fails/times out.
+if grep ip6-localhost /etc/hosts; then
+    sudo sed -i "/ip6-/d" /etc/hosts
+    cat /etc/hosts
+fi
+
 # Use a rudimental retry workflow as workaround to svn export hanging for minutes.
 # Travis automatically kills a build if one step takes more than 10 minutes without
 # reporting any progress.