[LTP] [PATCH] Rewrite logrotate case with using `tst_test.sh`

Petr Vorel pvorel@suse.cz
Wed Mar 13 22:03:32 CET 2024


Hi,

> 1. Rewrite case with using `tst_test.sh`
> 2. Enable steps in test#2 in old case (`test02` not called in old
>    code).

Thanks a lot, merged with some style cleanup + follow up simplification.

NOTE: I realized for running less than 1 min we would have to define more rows +
sleep, e.g. for each 10 sec:

("* * * * * $(command -v logrotate) $(pwd)/tst_largelog.conf")
("* * * * * (sleep 10; $(command -v logrotate) $(pwd)/tst_largelog.conf)")
("* * * * * (sleep 20; $(command -v logrotate) $(pwd)/tst_largelog.conf)")
("* * * * * (sleep 30; $(command -v logrotate) $(pwd)/tst_largelog.conf)")
("* * * * * (sleep 40; $(command -v logrotate) $(pwd)/tst_largelog.conf)")
("* * * * * (sleep 50; $(command -v logrotate) $(pwd)/tst_largelog.conf)")

But I guess first min would still be waiting, thus not implementing it.

Kind regards,
Petr


More information about the ltp mailing list