commands/logrotate_tests.sh: Pass correct arguments to tst_res()
Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
diff --git a/testcases/commands/logrotate/logrotate_tests.sh b/testcases/commands/logrotate/logrotate_tests.sh
index ce12c7f..e89447c 100755
--- a/testcases/commands/logrotate/logrotate_tests.sh
+++ b/testcases/commands/logrotate/logrotate_tests.sh
@@ -208,7 +208,7 @@
$LTPTMP/tst_logrotate.out > $LTPTMP/tst_logrotate.err 2>&1 || RC=$?
if [ $RC -ne 0 ]
then
- tst_res TFAIL > $LTPTMP/tst_logrotate.err 2>&1 \
+ tst_res TFAIL $LTPTMP/tst_logrotate.err \
"Test #1: logrotate command failed. Reason:"
else
# Check if compressed log file is created.