From 26d9fed77c9c093f461b595a9cde019a91881bf0 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Tue, 11 Nov 2025 08:29:11 +0100 Subject: [PATCH] unittest.sh: check file exists --- tests/unittest.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unittest.sh b/tests/unittest.sh index 7c48ddc0..c683408a 100755 --- a/tests/unittest.sh +++ b/tests/unittest.sh @@ -25,6 +25,10 @@ chmod +x "$binary" one_test() { file="$1" + if [ ! -f "$file" ]; then + echo "ERROR: $file is not a regular, existing file!" + exit 1 + fi pushd "$fs" echo "Testing $file" if [ -z "$ondevice" ]; then