[LTP] [PATCH] doc/shell-test-api.txt: Don't include tst_test.sh twice

Yang Xu xuyang2018.jy@fujitsu.com
Thu May 18 09:40:23 CEST 2023


Usually, we include tst_test.sh on the end of a case and on the
top of tst_run. Some the beginning tst_test.sh is useless and remove.

Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
 doc/shell-test-api.txt | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/doc/shell-test-api.txt b/doc/shell-test-api.txt
index e5c918660..dde170644 100644
--- a/doc/shell-test-api.txt
+++ b/doc/shell-test-api.txt
@@ -26,7 +26,6 @@ WARNING: All identifiers starting with 'TST_' or 'tst_' are reserved for the
 # This is a basic test for true shell builtin
 
 TST_TESTFUNC=do_test
-. tst_test.sh
 
 do_test()
 {
@@ -79,7 +78,6 @@ not trigger calling it.
 
 TST_TESTFUNC=test
 TST_CNT=2
-. tst_test.sh
 
 test1()
 {
@@ -110,7 +108,6 @@ found they are executed one by one. The test number is passed to it in the '$1'.
 
 TST_TESTFUNC=do_test
 TST_CNT=2
-. tst_test.sh
 
 do_test()
 {
@@ -141,7 +138,6 @@ to it in the '$1'.
 TST_TESTFUNC=do_test
 TST_TEST_DATA="foo:bar:d dd"
 TST_TEST_DATA_IFS=":"
-. tst_test.sh
 
 do_test()
 {
@@ -168,7 +164,6 @@ It's possible to pass data for function with '$TST_TEST_DATA'. Optional
 TST_TESTFUNC=do_test
 TST_CNT=2
 TST_TEST_DATA="foo bar"
-. tst_test.sh
 
 do_test()
 {
@@ -285,7 +280,6 @@ as it doesn't exit (it issues 'tst_res TCONF'). Expected usage is:
 #!/bin/sh
 
 TST_TESTFUNC=do_test
-. tst_test.sh
 
 do_test()
 {
@@ -325,8 +319,6 @@ TST_USAGE=usage
 TST_PARSE_ARGS=parse_args
 TST_TESTFUNC=do_test
 
-. tst_test.sh
-
 ALTERNATIVE=0
 MODE="foo"
 
@@ -378,8 +370,6 @@ TST_POS_ARGS=3
 TST_USAGE=usage
 TST_TESTFUNC=do_test
 
-. tst_test.sh
-
 usage()
 {
 	cat << EOF
-- 
2.39.1



More information about the ltp mailing list