Skip to content

Commit 1133245

Browse files
xuyang0410pevik
authored andcommitted
doc/shell-test-api.txt: Don't include tst_test.sh twice
Usually, we source tst_test.sh on the end of a case and on the top of tst_run. Remove sources from the beginning (leftover from 968bdc1). Fixes: 968bdc1 ("doc: Update shell API examples") Reviewed-by: Petr Vorel <[email protected]> Signed-off-by: Yang Xu <[email protected]>
1 parent 3ebc2df commit 1133245

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

doc/shell-test-api.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ WARNING: All identifiers starting with 'TST_' or 'tst_' are reserved for the
2626
# This is a basic test for true shell builtin
2727

2828
TST_TESTFUNC=do_test
29-
. tst_test.sh
3029

3130
do_test()
3231
{
@@ -79,7 +78,6 @@ not trigger calling it.
7978

8079
TST_TESTFUNC=test
8180
TST_CNT=2
82-
. tst_test.sh
8381

8482
test1()
8583
{
@@ -110,7 +108,6 @@ found they are executed one by one. The test number is passed to it in the '$1'.
110108

111109
TST_TESTFUNC=do_test
112110
TST_CNT=2
113-
. tst_test.sh
114111

115112
do_test()
116113
{
@@ -141,7 +138,6 @@ to it in the '$1'.
141138
TST_TESTFUNC=do_test
142139
TST_TEST_DATA="foo:bar:d dd"
143140
TST_TEST_DATA_IFS=":"
144-
. tst_test.sh
145141

146142
do_test()
147143
{
@@ -168,7 +164,6 @@ It's possible to pass data for function with '$TST_TEST_DATA'. Optional
168164
TST_TESTFUNC=do_test
169165
TST_CNT=2
170166
TST_TEST_DATA="foo bar"
171-
. tst_test.sh
172167

173168
do_test()
174169
{
@@ -285,7 +280,6 @@ as it doesn't exit (it issues 'tst_res TCONF'). Expected usage is:
285280
#!/bin/sh
286281

287282
TST_TESTFUNC=do_test
288-
. tst_test.sh
289283

290284
do_test()
291285
{
@@ -325,8 +319,6 @@ TST_USAGE=usage
325319
TST_PARSE_ARGS=parse_args
326320
TST_TESTFUNC=do_test
327321

328-
. tst_test.sh
329-
330322
ALTERNATIVE=0
331323
MODE="foo"
332324

@@ -378,8 +370,6 @@ TST_POS_ARGS=3
378370
TST_USAGE=usage
379371
TST_TESTFUNC=do_test
380372

381-
. tst_test.sh
382-
383373
usage()
384374
{
385375
cat << EOF

0 commit comments

Comments
 (0)