summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2024-06-06 11:40:14 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2024-06-13 14:32:32 +0200
commitbfb9f2124b8f9da48b53d279278de3f8f0a00b82 (patch)
tree1f29cdae2b17b7785e7ca0d6352e2578a8ebb924
parente3ae8e27027dea024ecd2f167e7a3663fdc35174 (diff)
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.
-rwxr-xr-xtest/integration/run-tests2
1 files changed, 1 insertions, 1 deletions
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"