From 674b1da8bfde64aa42d8fbc230ccad21bc5c1a6c Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Thu, 30 Jun 2022 07:30:12 +0200 Subject: [PATCH] Improve hwclock support test. (#4904) --- tests/integration/targets/timezone/tasks/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/targets/timezone/tasks/test.yml b/tests/integration/targets/timezone/tasks/test.yml index ec0d854df0..1b944fb925 100644 --- a/tests/integration/targets/timezone/tasks/test.yml +++ b/tests/integration/targets/timezone/tasks/test.yml @@ -287,7 +287,7 @@ - name: set_fact: - hwclock_supported: '{{ hwclock_test is successful or timedatectl_test is successful }}' + hwclock_supported: '{{ hwclock_test is successful or (timedatectl_test is successful and "RTC time: n/a" not in timedatectl_test.stdout) }}' ## ## test set hwclock, idempotency and checkmode ##