]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
mdadm/test: improve filtering r10 from raid1 in raidtype
authorZhilong Liu <zlliu@suse.com>
Fri, 2 Feb 2018 06:10:45 +0000 (14:10 +0800)
committerJes Sorensen <jsorensen@fb.com>
Thu, 8 Mar 2018 19:28:03 +0000 (14:28 -0500)
Signed-off-by: Zhilong Liu <zlliu@suse.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
test

diff --git a/test b/test
index 4ddef382421f795470b73e4f1eb0ea468b2e0795..024cb634cac00bfded7a814c7a0c0787e4185f6e 100755 (executable)
--- a/test
+++ b/test
@@ -183,7 +183,7 @@ parse_args() {
                                TESTLIST=($(ls $testdir | grep "linear"))
                                ;;
                        raid1 )
-                               TESTLIST=($(ls $testdir | grep "[0-9][0-9]r1\|raid1" | grep -vi raid10))
+                               TESTLIST=($(ls $testdir | grep "[0-9][0-9]r1\|raid1" | grep -vi "r10\|raid10"))
                                ;;
                        raid456 )
                                TESTLIST=($(ls $testdir | grep "[0-9][0-9]r[4-6]\|raid[4-6]"))