test: remove logs before chronyd start in system tests

This commit is contained in:
Miroslav Lichvar 2021-04-29 13:15:03 +02:00
parent 49d718c025
commit 1d03908646
2 changed files with 2 additions and 2 deletions

View file

@ -51,8 +51,6 @@ stop_chronyd || test_fail
check_chronyd_messages || test_fail check_chronyd_messages || test_fail
check_chronyd_files || test_fail check_chronyd_files || test_fail
rm -f $TEST_LOGDIR/measurements.log
server_options="port $ntpport nts ntsport $((ntsport + 1))" server_options="port $ntpport nts ntsport $((ntsport + 1))"
start_chronyd || test_fail start_chronyd || test_fail

View file

@ -260,6 +260,8 @@ start_chronyd() {
trap stop_chronyd EXIT trap stop_chronyd EXIT
rm -f "$TEST_LOGDIR"/*.log
$CHRONYD_WRAPPER "$chronyd" $(get_chronyd_options) > "$TEST_DIR/chronyd.out" 2>&1 $CHRONYD_WRAPPER "$chronyd" $(get_chronyd_options) > "$TEST_DIR/chronyd.out" 2>&1
[ $? -eq 0 ] && [ -f "$pidfile" ] && ps -p "$(cat "$pidfile")" > /dev/null && test_ok || test_error [ $? -eq 0 ] && [ -f "$pidfile" ] && ps -p "$(cat "$pidfile")" > /dev/null && test_ok || test_error