Skip to content

Commit

Permalink
Merge pull request #468 from liangxiao1/aws
Browse files Browse the repository at this point in the history
test_able_to_sync_chrony_server: do not exit directoy when there is no time server picked
  • Loading branch information
liangxiao1 authored Nov 6, 2024
2 parents 352d8e2 + 3e59945 commit 32f9949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os_tests/tests/test_general_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,7 @@ def test_able_to_sync_chrony_server(self):
utils_lib.run_cmd(self, 'sudo systemctl restart chronyd.service', expect_ret=0)
for count in utils_lib.iterate_timeout(
240, "check chrony server is in use", wait=10):
chrony_source = utils_lib.run_cmd(self, "chronyc sources -v", expect_ret=0)
chrony_source = utils_lib.run_cmd(self, "chronyc sources -v", msg="check chrony server picked, start with '^*'")
if re.search('\^\*', chrony_source): break
for count in utils_lib.iterate_timeout(
240, "check date be synced by chrony"):
Expand Down

0 comments on commit 32f9949

Please sign in to comment.