]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
tests: skip 07testreshape5 if no test_stripe
authorMateusz Kusiak <mateusz.kusiak@intel.com>
Tue, 3 Dec 2024 10:32:18 +0000 (11:32 +0100)
committerMariusz Tkaczyk <mtkaczyk@kernel.org>
Fri, 13 Dec 2024 09:08:10 +0000 (10:08 +0100)
For test 07testreshape5 to succeed test_stripe binary must be first
compiled. Add check to skip test if no binary.

Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com>
tests/07testreshape5

index d90fd15e0e613ce57af0296d5fea1b5fb58f200a..127da0cf17357de077323ac1bb21cb53b8eb9374 100644 (file)
@@ -5,6 +5,9 @@
 # shaped md arrays.
 set -x
 dir="."
+
+[ -e $dir/test_stripe ] || skip "test_stripes binary has not been compiled, skipping"
+
 layouts=(la ra ls rs)
 for level in 5 6
 do