[LTP] [PATCH] commands/logrotate_tests.sh: Fix two issues
Petr Vorel
pvorel@suse.cz
Wed Nov 28 08:00:37 CET 2018
Hi Xiao,
> 1) Pass correct arguments when calling tst_res command in logrotate_tests.sh
> 2) If syslog group doesn't exist on system, su option with it triggers a
> an 'unknow group' error in config file and then skips the config file.
> e.g. Running logrotate_sh gets either of the following errors, because
> logrotate command with above error returns non-zero exit status since
> commit e547b94 in logrotate:
> ---------------------------------------------------------
> logrotate01 1 TFAIL : ltpapicmd.c:154: Test #1: logrotate command failed. Reason:
> ...
> logrotate01 1 TFAIL : ltpapicmd.c:154: Test #1: logrotate command exited with 1 return code. Output:
> ---------------------------------------------------------
> We just use syslog group if it actually exists.
> Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
> ---
> testcases/commands/logrotate/logrotate_tests.sh | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
thanks for your commit, pushed with some changes (I split commit into 2,
adjusted commit message, simplify variable name and reverse check logic to not
repeat group name).
Kind regards,
Petr
More information about the ltp
mailing list