From 21b129f947ebbebbf14760cde9917b0daac3fd05 Mon Sep 17 00:00:00 2001 From: Shaleen Jain Date: Wed, 29 Nov 2017 20:29:07 +0530 Subject: Fix detecting systemd timedate deamon (#494) Fix detecting systemd timedate daemon --- include/tests_time | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tests_time b/include/tests_time index 4d9dbfe5..9458d36e 100644 --- a/include/tests_time +++ b/include/tests_time @@ -99,7 +99,7 @@ # Check timedate daemon (systemd) if [ ! -z "${TIMEDATECTL}" ]; then - FIND=$(${TIMEDATECTL} status | ${GREPBINARY} "NTP synchronized: yes") + FIND=$(${TIMEDATECTL} status | ${EGREPBINARY} "(NTP|System clock) synchronized: yes") if [ ! -z "${FIND}" ]; then # Check for systemd-timesyncd if [ -f /etc/systemd/timesyncd.conf ]; then @@ -218,7 +218,7 @@ Register --test-no TIME-3106 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check systemd NTP time synchronization status" if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: Check the status of time synchronization via timedatectl" - FIND=$(${TIMEDATECTL} status | ${GREPBINARY} "NTP synchronized: yes") + FIND=$(${TIMEDATECTL} status | ${EGREPBINARY} "(NTP|System clock) synchronized: yes") if [ -z "${FIND}" ]; then LogText "Result: time not synchronized via NTP" ReportSuggestion "${TEST_NO}" "Check timedatectl output. Sychronization via NTP is enabled, but status reflects it is not synchronized" -- cgit v1.2.3