[LTP] [PATCH v6 6/8] tst_test.sh: Allow | after whitelisted variable

Petr Vorel pvorel@suse.cz
Thu Sep 15 11:36:37 CEST 2022


    Variable followed by other variable was not whitelisted:
    e.g.:
	TST_FS_TYPE|fuseblk
    TWARN: Reserved variable TST_FS_TYPE$ used!

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 55d96f17d..e92e0ce7f 100644
--- a/testcases/lib/tst_test.sh
+++ b/testcases/lib/tst_test.sh
@@ -643,7 +643,7 @@ tst_run()
 	local _tst_fs
 	local _tst_max
 	local _tst_name
-	local _tst_pattern='[='\''"} \t\/:`$\;].*'
+	local _tst_pattern='[='\''"} \t\/:`$\;|].*'
 	local ret
 
 	if [ -n "$TST_TEST_PATH" ]; then
-- 
2.37.3



More information about the ltp mailing list