From bfb9f2124b8f9da48b53d279278de3f8f0a00b82 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 6 Jun 2024 11:40:14 +0200 Subject: Make the failure mode for non-executable tests stronger When a test-* file is created but not executable, we'd ignore the argument and then our subprocess would run the entire test suite itself, sequentially. Silly. Let's just see if the file exists instead, then the test will fail. --- test/integration/run-tests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/integration/run-tests') diff --git a/test/integration/run-tests b/test/integration/run-tests index 3100e8e05..331adfcfa 100755 --- a/test/integration/run-tests +++ b/test/integration/run-tests @@ -31,7 +31,7 @@ while [ -n "$1" ]; do elif [ "$1" = '--only' ]; then TESTLIST="$2" shift - elif [ -x "$1" ]; then + elif [ -e "$1" ]; then TESTTORUN="$1" else echo >&2 "WARNING: Unknown parameter »$1« will be ignored" -- cgit v1.2.3-70-g09d2