Skip to content
Snippets Groups Projects
Verified Commit beda5b39 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

handle iburst option

parent 8eb525b4
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ if os.path.isfile('/usr/bin/ntpq'):
cmd = 'LANG=C ntpq -pd'
expected = 'remote'
ntpconf = '/etc/ntp.conf'
ntpconf_expected = r'^(?:server|pool)\s(.*)$'
ntpconf_expected = r'^(?:server|pool)\s([a-zA-Z0-9\._-]+)(?:\s*iburst)?$'
else:
cmd = 'LANG=C timedatectl'
expected = 'NTP synchronized'
......@@ -52,7 +52,7 @@ if not expected_servers:
if 'Ubuntu' in subprocess.getoutput('lsb_release -a'):
expected_servers = ['ntp.ubuntu.com']
else:
expected_servers = ['0.debian.pool.ntp.org iburst']
expected_servers = ['0.debian.pool.ntp.org']
with open(ntpconf, 'r') as f:
content = f.read()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment