From c900dff3143db4b9793ee8f2c916d8c899d04023 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 3 Jun 2025 15:40:35 +0200 Subject: [PATCH] test: fix tests for disabled cmdmon --- test/simulation/103-initstepslew | 2 +- test/simulation/136-broadcast | 4 +++- test/simulation/147-refresh | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/simulation/103-initstepslew b/test/simulation/103-initstepslew index fe47b68c..366e9b8f 100755 --- a/test/simulation/103-initstepslew +++ b/test/simulation/103-initstepslew @@ -52,7 +52,7 @@ client_conf="initstepslew 5 192.168.123.1 192.168.123.2" min_sync_time=1 max_sync_time=500 -server_conf="deny all" +server_conf="deny 192.168.0.0/16" run_test || test_fail check_chronyd_exit || test_fail diff --git a/test/simulation/136-broadcast b/test/simulation/136-broadcast index 1488c53d..36f1a489 100755 --- a/test/simulation/136-broadcast +++ b/test/simulation/136-broadcast @@ -8,7 +8,9 @@ server_conf="broadcast 64 192.168.123.255" client_server_options="offline" run_test || test_fail -check_chronyd_exit || test_fail +if check_config_h 'FEAT_CMDMON 1'; then + check_chronyd_exit || test_fail +fi check_packet_interval && test_fail check_file_messages " 1 2 " 150 160 log.packets || test_fail diff --git a/test/simulation/147-refresh b/test/simulation/147-refresh index ea091e6d..48f15fb2 100755 --- a/test/simulation/147-refresh +++ b/test/simulation/147-refresh @@ -4,6 +4,8 @@ test_start "address refreshment" +check_config_h 'FEAT_CMDMON 1' || test_skip + limit=1000 servers=5 client_conf="logdir tmp -- 2.47.2