unittest.sh: check file exists

This commit is contained in:
Thomas Farstrike
2025-11-11 08:29:11 +01:00
parent e9e24dd620
commit 26d9fed77c
+4
View File
@@ -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