From 7d85963c65b5635417bd05322d7116b76e85c843 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Thu, 30 Jun 2022 07:42:02 +0200 Subject: [PATCH] Improve hwclock support test. (#4904) (#4907) (cherry picked from commit 674b1da8bfde64aa42d8fbc230ccad21bc5c1a6c) Co-authored-by: Felix Fontein --- 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 ##