Add support for 18.04 (#4)

This commit is contained in:
Jason Hee authored and GitHub committed 2018-05-03 19:24:13 +08:00
1 parent 79ccba4ac2
commit 3e02daa942
3 files changed
+79 -2

No files matched your search

+7 -1
View File
@@ -113,7 +113,13 @@ function testTimezone() {
function testNTP() {
configureNTP
assertContains "NTP synchronized: yes" "$(timedatectl status)"
ubuntu_version="$(lsb_release -sr)"
if [[ $ubuntu_version == '18.04' ]]; then
assertContains "System clock synchronized: yes" "$(timedatectl status)"
else
assertContains "NTP synchronized: yes" "$(timedatectl status)"
fi
}
function testTeardown () {