diff options
author | David Disseldorp <ddiss@suse.de> | 2022-06-20 21:29:29 +0200 |
---|---|---|
committer | Zorro Lang <zlang@kernel.org> | 2022-06-24 23:15:03 +0800 |
commit | 0730b5a94e0fc4e3e8a69f67c1122d1dbcefe90f (patch) | |
tree | 2fd491c341a6fc5a8591ee616dc57cc3ab937d1c /check | |
parent | b55aef7cfe6c51bb08b2f820e2afc5b2142d86db (diff) | |
download | xfstests-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-x | check | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -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//,/ }" |