Jens noticed that check tried to execute his undo file:
./check: line 219: .: tests/block/.003.un~: cannot execute binary file
Fix it by explicitly matching '[0-9]{3}'.
Reported-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
while IFS= read -r -d '' seq; do
( _run_test "${category}/${seq}" )
done < <(find "tests/${category}" -mindepth 1 -maxdepth 1 -type f \
- -not -name '*.out' -not -name category -printf '%P\0' | sort -z)
+ -name '[0-9][0-9][0-9]' -printf '%P\0' | sort -z)
}
if [[ $EUID -ne 0 ]]; then