]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: make 007-cmdmon test more reliable
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 12 May 2021 11:03:45 +0000 (13:03 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 12 May 2021 11:06:15 +0000 (13:06 +0200)
Reorder the local off command with respect to offline and online to
prevent the client from getting an unsynchronized response.

test/system/007-cmdmon

index abacb7a5cf2c22b33f4e10a2711e4f2e82541520..fe2b0067a5436dd15da5e4ce85f14d10755f064b 100755 (executable)
@@ -23,8 +23,11 @@ for command in \
        "dfreq 1.0e-3" \
        "doffset -0.1" \
        "dump" \
+       "offline" \
        "local off" \
        "local" \
+       "online" \
+       "onoffline" \
        "maxdelay $server 1e-1" \
        "maxdelaydevratio $server 5.0" \
        "maxdelayratio $server 3.0" \
@@ -32,9 +35,6 @@ for command in \
        "maxupdateskew $server 10.0" \
        "minpoll $server 10" \
        "minstratum $server 1" \
-       "offline" \
-       "online" \
-       "onoffline" \
        "polltarget $server 10" \
        "refresh" \
        "rekey" \