From: David Disseldorp Date: Mon, 20 Jun 2022 19:29:29 +0000 (+0200) Subject: check: avoid FSTYP= repetition X-Git-Tag: v2022.06.26~10 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0730b5a94e0fc4e3e8a69f67c1122d1dbcefe90f;p=users%2Fhch%2Fxfstests-dev.git check: avoid FSTYP= repetition Signed-off-by: David Disseldorp Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- diff --git a/check b/check index de11b37e1..42925e09f 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//,/ }"