From: Michał Kępień Date: Thu, 26 Sep 2019 13:11:15 +0000 (+0200) Subject: Fix the "statschannel" system test on Windows X-Git-Tag: v9.15.5~14^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4deb2a48d93b5186e958ddd6a8f5ffc80962a5ff;p=thirdparty%2Fbind9.git Fix the "statschannel" system test on Windows The SYSTEMTESTTOP variable is set by bin/tests/system/run.sh. When system tests are run on Windows, that variable will contain an absolute Cygwin path. In the case of the "statschannel" system test, using the unmodified SYSTEMTESTTOP variable in tests.sh causes the RNDCCMD variable to contain an invocation of a native Windows application with an absolute Cygwin path passed as a parameter, which prevents rndc from working in that system test. Until we have a cleaner solution, override SYSTEMTESTTOP with a relative path to work around the issue and thus fix the "statschannel" system test on Windows. --- diff --git a/bin/tests/system/statschannel/tests.sh b/bin/tests/system/statschannel/tests.sh index 509a402df33..d39b076aaec 100644 --- a/bin/tests/system/statschannel/tests.sh +++ b/bin/tests/system/statschannel/tests.sh @@ -9,6 +9,7 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. +SYSTEMTESTTOP=.. # shellcheck source=conf.sh . "$SYSTEMTESTTOP/conf.sh"