test: always write packet log

This commit is contained in:
Miroslav Lichvar 2014-06-03 11:33:24 +02:00
parent cea68ebc6f
commit 28876d6afa
3 changed files with 1 additions and 6 deletions

View file

@ -7,7 +7,6 @@ test_start "reply to client configured as server"
server_conf="server 192.168.123.2
acquisitionport 123"
client_conf="acquisitionport 123"
log_packets=1
run_test || test_fail
check_chronyd_exit || test_fail

View file

@ -4,8 +4,6 @@
test_start "port and acquisitionport directives"
log_packets=1
run_test || test_fail
check_chronyd_exit || test_fail
check_source_selection || test_fail

View file

@ -51,7 +51,6 @@ default_wander=1e-9
default_refclock_jitter=""
default_update_interval=0
default_log_packets=0
default_shift_pll=2
default_server_strata=1
@ -351,8 +350,7 @@ run_simulation() {
test_message 2 0 "running simulation:"
start_server $nodes \
-o tmp/log.offset -f tmp/log.freq \
$([ $log_packets -ne 0 ] && echo -p tmp/log.packets) \
-o tmp/log.offset -f tmp/log.freq -p tmp/log.packets \
-R $(awk "BEGIN {print $update_interval < 0 ? 2^-($update_interval) : 1}") \
-r $(awk "BEGIN {print $max_sync_time * 2^$update_interval}") \
-l $(awk "BEGIN {print $limit * 2^$update_interval}") && test_ok || test_error