diff options
author | Petr Vorel <pvorel@suse.cz> | 2018-06-13 17:43:02 +0200 |
---|---|---|
committer | Petr Vorel <pvorel@suse.cz> | 2018-07-04 17:43:36 +0200 |
commit | a9954796758ce5e700fb5a1407a1cc26b9adcd80 (patch) | |
tree | 28352a5086e3739374da7786ffa11b2abb16ffed /testcases/lib | |
parent | 124ac3def4a530c1ff3b30e35cd048e6f8a74d9b (diff) |
tst_test.sh: Introduce TST_LIB_LOADED
to load the library only once.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
Suggested-by: Cyril Hrubis <chrubis@suse.cz>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Reviewed-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Diffstat (limited to 'testcases/lib')
-rw-r--r-- | testcases/lib/tst_test.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh index 73c238ab4..c2460762d 100644 --- a/testcases/lib/tst_test.sh +++ b/testcases/lib/tst_test.sh @@ -21,6 +21,8 @@ # This is a LTP test library for shell. # +[ -n "$TST_LIB_LOADED" ] && return 0 + export TST_PASS=0 export TST_FAIL=0 export TST_BROK=0 @@ -29,6 +31,7 @@ export TST_CONF=0 export TST_COUNT=1 export TST_ITERATIONS=1 export TST_TMPDIR_RHOST=0 +export TST_LIB_LOADED=1 . tst_ansi_color.sh |