From: Miroslav Lichvar Date: Thu, 29 Apr 2021 11:15:03 +0000 (+0200) Subject: test: remove logs before chronyd start in system tests X-Git-Tag: 4.1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d03908646ce24682a6dbea99911f837a92c4af3;p=thirdparty%2Fchrony.git test: remove logs before chronyd start in system tests --- diff --git a/test/system/010-nts b/test/system/010-nts index 7897ceb0..66007256 100755 --- a/test/system/010-nts +++ b/test/system/010-nts @@ -51,8 +51,6 @@ stop_chronyd || test_fail check_chronyd_messages || test_fail check_chronyd_files || test_fail -rm -f $TEST_LOGDIR/measurements.log - server_options="port $ntpport nts ntsport $((ntsport + 1))" start_chronyd || test_fail diff --git a/test/system/test.common b/test/system/test.common index b9a99293..7005c9e1 100644 --- a/test/system/test.common +++ b/test/system/test.common @@ -260,6 +260,8 @@ start_chronyd() { trap stop_chronyd EXIT + rm -f "$TEST_LOGDIR"/*.log + $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