aboutsummaryrefslogtreecommitdiffstats
path: root/check
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@suse.de>2022-06-20 21:29:29 +0200
committerZorro Lang <zlang@kernel.org>2022-06-24 23:15:03 +0800
commit0730b5a94e0fc4e3e8a69f67c1122d1dbcefe90f (patch)
tree2fd491c341a6fc5a8591ee616dc57cc3ab937d1c /check
parentb55aef7cfe6c51bb08b2f820e2afc5b2142d86db (diff)
downloadxfstests-dev-0730b5a94e0fc4e3e8a69f67c1122d1dbcefe90f.tar.gz
check: avoid FSTYP=<fstyp parameter> repetition
Signed-off-by: David Disseldorp <ddiss@suse.de> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Zorro Lang <zlang@kernel.org>
Diffstat (limited to 'check')
-rwxr-xr-xcheck16
1 files changed, 7 insertions, 9 deletions
diff --git a/check b/check
index de11b37e13..42925e09f6 100755
--- 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//,/ }"