]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
check: avoid FSTYP=<fstyp parameter> repetition
authorDavid Disseldorp <ddiss@suse.de>
Mon, 20 Jun 2022 19:29:29 +0000 (21:29 +0200)
committerZorro Lang <zlang@kernel.org>
Fri, 24 Jun 2022 15:15:03 +0000 (23:15 +0800)
Signed-off-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
check

diff --git a/check b/check
index de11b37e1346806d80158521b28a1752aeb63092..42925e09f687172436dba4b54eaf59927ef76915 100755 (executable)
--- a/check
+++ b/check
@@ -277,15 +277,13 @@ while [ $# -gt 0 ]; do
        case "$1" in
        -\? | -h | --help) usage ;;
 
-       -nfs)           FSTYP=nfs ;;
-       -glusterfs)     FSTYP=glusterfs ;;
-       -cifs)          FSTYP=cifs ;;
-       -9p)            FSTYP=9p ;;
-       -virtiofs)      FSTYP=virtiofs ;;
-       -overlay)       FSTYP=overlay; export OVERLAY=true ;;
-       -pvfs2)         FSTYP=pvfs2 ;;
-       -tmpfs)         FSTYP=tmpfs ;;
-       -ubifs)         FSTYP=ubifs ;;
+       -nfs|-glusterfs|-cifs|-9p|-virtiofs|-pvfs2|-tmpfs|-ubifs)
+               FSTYP="${1:1}"
+               ;;
+       -overlay)
+               FSTYP=overlay
+               export OVERLAY=true
+               ;;
 
        -g)     group=$2 ; shift ;
                GROUP_LIST="$GROUP_LIST ${group//,/ }"