summaryrefslogtreecommitdiffstats
path: root/test/TEST-53-ISSUE-16347
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-05-05 22:17:38 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-05-06 11:57:09 +0200
commit6ff6b2e29b95c116aa4286865d09e5709e0a540a (patch)
treeecbf46cffff4468abb84b27fa6002e2466c19cf4 /test/TEST-53-ISSUE-16347
parentTEST-55-OOMD: Configure init.scope credential in mkosi image (diff)
downloadsystemd-6ff6b2e29b95c116aa4286865d09e5709e0a540a.tar.xz
systemd-6ff6b2e29b95c116aa4286865d09e5709e0a540a.zip
TEST-53-ISSUE-16347: Add rtc configuration for qemu
Diffstat (limited to 'test/TEST-53-ISSUE-16347')
-rw-r--r--test/TEST-53-ISSUE-16347/meson.build7
-rwxr-xr-xtest/TEST-53-ISSUE-16347/mkosi.configure6
2 files changed, 13 insertions, 0 deletions
diff --git a/test/TEST-53-ISSUE-16347/meson.build b/test/TEST-53-ISSUE-16347/meson.build
new file mode 100644
index 0000000000..0b7644f4ad
--- /dev/null
+++ b/test/TEST-53-ISSUE-16347/meson.build
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+test_params += {
+ 'mkosi_args' : test_params['mkosi_args'] + [
+ '--configure-script', meson.current_source_dir() / 'mkosi.configure',
+ ],
+}
diff --git a/test/TEST-53-ISSUE-16347/mkosi.configure b/test/TEST-53-ISSUE-16347/mkosi.configure
new file mode 100755
index 0000000000..d754fe46e2
--- /dev/null
+++ b/test/TEST-53-ISSUE-16347/mkosi.configure
@@ -0,0 +1,6 @@
+#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
+set -e
+
+RTC="$(date -u +%Y-%m-%dT%H:%M:%S -d "+3 days")"
+jq ".QemuArgs += [\"-rtc\", \"base=$RTC\"]"