From: Willy Tarreau Date: Tue, 23 Apr 2019 14:09:50 +0000 (+0200) Subject: REGTEST: make the "run-regtests" script search for tests in reg-tests by default X-Git-Tag: v2.0-dev3~188 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca8df4c0742d9d6290614e5213b18a68cf5dc7f7;p=thirdparty%2Fhaproxy.git REGTEST: make the "run-regtests" script search for tests in reg-tests by default It happens almost daily to me that make regtests fails because the script found a temporary, old, or broken VTC file that was lying in my work dir, leaving me no place to hide it. This is a real pain as some tests take ages to fail, so let's make this script only look up for tests where they are expected to be stored, under reg-tests only. It remains possible to force the location on the command line though. --- diff --git a/scripts/run-regtests.sh b/scripts/run-regtests.sh index 27f738056f..10f29e408b 100755 --- a/scripts/run-regtests.sh +++ b/scripts/run-regtests.sh @@ -332,7 +332,7 @@ if [ $(_version "$HAPROXY_VERSION") -lt $(_version "1.9") ]; then fi if [ -z "$REGTESTS" ]; then - _findtests ./ + _findtests reg-tests/ else for t in $REGTESTS; do _findtests $t