All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Disseldorp <ddiss@suse.de>
To: fstests@vger.kernel.org
Cc: David Disseldorp <ddiss@suse.de>
Subject: [PATCH 1/6] check: avoid FSTYP=<fstyp parameter> repetition
Date: Mon, 20 Jun 2022 21:29:29 +0200	[thread overview]
Message-ID: <20220620192934.21694-2-ddiss@suse.de> (raw)
In-Reply-To: <20220620192934.21694-1-ddiss@suse.de>

Signed-off-by: David Disseldorp <ddiss@suse.de>
---
 check | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/check b/check
index de11b37e..42925e09 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//,/ }"
-- 
2.35.3


  reply	other threads:[~2022-06-20 19:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-20 19:29 [PATCH 0/6] check: minor cleanups and xunit report fix David Disseldorp
2022-06-20 19:29 ` David Disseldorp [this message]
2022-06-22  4:27   ` [PATCH 1/6] check: avoid FSTYP=<fstyp parameter> repetition Zorro Lang
2022-06-20 19:29 ` [PATCH 2/6] check: simplify check.time parsing David Disseldorp
2022-06-22  4:31   ` Zorro Lang
2022-06-20 19:29 ` [PATCH 3/6] report: drop unused _xunit_make_section_report parameter David Disseldorp
2022-06-22  4:37   ` Zorro Lang
2022-06-20 19:29 ` [PATCH 4/6] report: fix xunit tests count David Disseldorp
2022-06-22  5:03   ` Zorro Lang
2022-06-20 19:29 ` [PATCH 5/6] check: use arrays instead of separate n_ counters David Disseldorp
2022-06-22  5:11   ` Zorro Lang
2022-06-20 19:29 ` [PATCH 6/6] check: remove err and first_test variables David Disseldorp
2022-06-22  5:15   ` Zorro Lang
2022-06-22  5:21 ` [PATCH 0/6] check: minor cleanups and xunit report fix Zorro Lang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220620192934.21694-2-ddiss@suse.de \
    --to=ddiss@suse.de \
    --cc=fstests@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.