From: Petr Vorel <pvorel@suse.cz> To: ltp@lists.linux.it Cc: Petr Vorel <pvorel@suse.cz>, linux-nfs@vger.kernel.org Subject: [PATCH v2 3/9] tst_test.sh: allow ' in pattern for allowed variables Date: Thu, 9 Jun 2022 23:42:17 +0200 [thread overview] Message-ID: <20220609214223.4608-4-pvorel@suse.cz> (raw) In-Reply-To: <20220609214223.4608-1-pvorel@suse.cz> to allow using '... $TST_FOO' i.e. without filtering ' EXPECT_PASS "grep '$TST_MNTPOINT $TST_FS_TYPE' /proc/mounts" would produce warning: tst_mount_device 1 TWARN: Reserved variable TST_FS_TYPE' used! because sed filters it as: FS_TYPE' Will be needed for next commit. Signed-off-by: Petr Vorel <pvorel@suse.cz> --- testcases/lib/tst_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh index 740115385..f9ff9bcb4 100644 --- a/testcases/lib/tst_test.sh +++ b/testcases/lib/tst_test.sh @@ -621,7 +621,7 @@ tst_run() local _tst_name if [ -n "$TST_TEST_PATH" ]; then - for _tst_i in $(grep '^[^#]*\bTST_' "$TST_TEST_PATH" | sed 's/.*TST_//; s/[="} \t\/:`].*//'); do + for _tst_i in $(grep '^[^#]*\bTST_' "$TST_TEST_PATH" | sed 's/.*TST_//; s/[='\''"} \t\/:`].*//'); do case "$_tst_i" in DISABLE_APPARMOR|DISABLE_SELINUX);; SETUP|CLEANUP|TESTFUNC|ID|CNT|MIN_KVER);; -- 2.36.1
WARNING: multiple messages have this Message-ID (diff)
From: Petr Vorel <pvorel@suse.cz> To: ltp@lists.linux.it Cc: linux-nfs@vger.kernel.org Subject: [LTP] [PATCH v2 3/9] tst_test.sh: allow ' in pattern for allowed variables Date: Thu, 9 Jun 2022 23:42:17 +0200 [thread overview] Message-ID: <20220609214223.4608-4-pvorel@suse.cz> (raw) In-Reply-To: <20220609214223.4608-1-pvorel@suse.cz> to allow using '... $TST_FOO' i.e. without filtering ' EXPECT_PASS "grep '$TST_MNTPOINT $TST_FS_TYPE' /proc/mounts" would produce warning: tst_mount_device 1 TWARN: Reserved variable TST_FS_TYPE' used! because sed filters it as: FS_TYPE' Will be needed for next commit. Signed-off-by: Petr Vorel <pvorel@suse.cz> --- testcases/lib/tst_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh index 740115385..f9ff9bcb4 100644 --- a/testcases/lib/tst_test.sh +++ b/testcases/lib/tst_test.sh @@ -621,7 +621,7 @@ tst_run() local _tst_name if [ -n "$TST_TEST_PATH" ]; then - for _tst_i in $(grep '^[^#]*\bTST_' "$TST_TEST_PATH" | sed 's/.*TST_//; s/[="} \t\/:`].*//'); do + for _tst_i in $(grep '^[^#]*\bTST_' "$TST_TEST_PATH" | sed 's/.*TST_//; s/[='\''"} \t\/:`].*//'); do case "$_tst_i" in DISABLE_APPARMOR|DISABLE_SELINUX);; SETUP|CLEANUP|TESTFUNC|ID|CNT|MIN_KVER);; -- 2.36.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2022-06-09 21:42 UTC|newest] Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-06-09 21:42 [PATCH 0/9] shell: nfs: $TST_ALL_FILESYSTEMS (.all_filesystems) Petr Vorel 2022-06-09 21:42 ` [LTP] " Petr Vorel 2022-06-09 21:42 ` [PATCH v2 1/9] tst_test.sh: Add $TST_MOUNT_DEVICE Petr Vorel 2022-06-09 21:42 ` [LTP] " Petr Vorel 2022-06-09 21:42 ` [PATCH v2 2/9] df01.sh: Use TST_MOUNT_DEVICE=1 Petr Vorel 2022-06-09 21:42 ` [LTP] " Petr Vorel 2022-06-09 21:42 ` Petr Vorel [this message] 2022-06-09 21:42 ` [LTP] [PATCH v2 3/9] tst_test.sh: allow ' in pattern for allowed variables Petr Vorel 2022-06-17 11:59 ` Cyril Hrubis 2022-06-17 11:59 ` Cyril Hrubis 2022-06-09 21:42 ` [PATCH v2 4/9] shell: Add test for TST_MOUNT_DEVICE=1 Petr Vorel 2022-06-09 21:42 ` [LTP] " Petr Vorel 2022-07-11 15:02 ` Petr Vorel 2022-07-11 15:02 ` [LTP] " Petr Vorel 2022-06-09 21:42 ` [PATCH v2 5/9] tst_test.sh: Add $TST_ALL_FILESYSTEMS Petr Vorel 2022-06-09 21:42 ` [LTP] " Petr Vorel 2022-06-17 13:52 ` Cyril Hrubis 2022-06-17 13:52 ` Cyril Hrubis 2022-06-17 14:07 ` Petr Vorel 2022-06-17 14:07 ` Petr Vorel 2022-08-04 7:07 ` Petr Vorel 2022-08-04 7:07 ` [LTP] " Petr Vorel 2022-06-09 21:42 ` [PATCH v2 6/9] tst_device: Remove unnecessary braces Petr Vorel 2022-06-09 21:42 ` [LTP] " Petr Vorel 2022-06-17 13:57 ` Cyril Hrubis 2022-06-17 13:57 ` Cyril Hrubis 2022-06-09 21:42 ` [PATCH v2 7/9] tst_device: Add clear command Petr Vorel 2022-06-09 21:42 ` [LTP] " Petr Vorel 2022-06-17 14:02 ` Cyril Hrubis 2022-06-17 14:02 ` Cyril Hrubis 2022-06-09 21:42 ` [PATCH v2 8/9] shell: Add test for TST_ALL_FILESYSTEMS=1 Petr Vorel 2022-06-09 21:42 ` [LTP] " Petr Vorel 2022-06-16 5:59 ` Li Wang 2022-06-09 21:42 ` [RFC][PATCH v2 9/9] nfs: Use TST_ALL_FILESYSTEMS=1 Petr Vorel 2022-06-09 21:42 ` [LTP] " Petr Vorel 2022-06-16 6:11 ` Li Wang 2022-06-16 6:51 ` Petr Vorel 2022-06-16 6:51 ` Petr Vorel 2022-06-17 14:51 ` Cyril Hrubis 2022-06-17 14:51 ` Cyril Hrubis 2022-07-11 15:08 ` Petr Vorel 2022-07-11 15:08 ` Petr Vorel
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=20220609214223.4608-4-pvorel@suse.cz \ --to=pvorel@suse.cz \ --cc=linux-nfs@vger.kernel.org \ --cc=ltp@lists.linux.it \ /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: linkBe 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.