[LTP] [RFC PATCH v5 2/5] tst_test.sh: Warn about using "private" variable or function
Petr Vorel
pvorel@suse.cz
Thu May 31 07:55:51 CEST 2018
Hi Alexey,
...
> > + for _tst_i in $(grep _tst_ "$TST_TEST_PATH" | sed 's/.*_tst_//; s/[="} \t\/:`].*//'); do
> > + tst_res TWARN "Private variable or function _tst_$_tst_i used!"
> Hi Petr,
> For example "do_virt_dev_tst_01()" function name in the test, it is
> also a private function name?
No, the goal was to separate library names (e.g. anything in tst_test.sh) from test
itself. I.e. we can use any name in test, just avoid using namespace _tst_ (or TST_ except
doing the setup itself.
Kind regards,
Petr
More information about the ltp
mailing list