]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
check: stricter test matching
authorOmar Sandoval <osandov@fb.com>
Thu, 4 May 2017 07:40:45 +0000 (00:40 -0700)
committerOmar Sandoval <osandov@fb.com>
Thu, 4 May 2017 20:20:21 +0000 (13:20 -0700)
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>
check

diff --git a/check b/check
index 49403fa7e9359605d16bde601e40726f1acbac59..ba2357be31ee5dff2c6532c5b997a7dc55e0f205 100755 (executable)
--- a/check
+++ b/check
@@ -317,7 +317,7 @@ _run_category() {
        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