[LTP] [PATCH 2/2] tst_test.sh: Warn about setup/cleanup function not loaded
Petr Vorel
pvorel@suse.cz
Tue May 19 08:43:14 CEST 2020
Hi Jörg,
> this looks good, just one small typo. And I guess I would raise this to
> TBROK, but that
> is just my personal preference :)
Yes, it could be. I thought TBROK would be for setup (tests results are probably
invalid without setup) and TWARN for cleanup (well, cleanup is important, but
results are valid, see other TWARN in tst_test.sh). But I want to be consistent
=> use TBROK.
> Am 18.05.2020 um 15:01 schrieb Petr Vorel:
> > + if type "$TST_CLEANUP" >/dev/null 2>&1; then
> > + $TST_CLEANUP
> > + else
> > + tst_res TWARN "cleanup function set (TST_SETUP='$TST_CLEANUP'), but not found (test bug)"
> This should probably be TST_CLEANUP=....
Thanks!
Kind regards,
Petr
More information about the ltp
mailing list