TEST-53-ISSUE-16347: Add rtc configuration for qemu

This commit is contained in:
Daan De Meyer 2024-05-05 22:17:38 +02:00
parent 9e71acab00
commit 6ff6b2e29b
2 changed files with 13 additions and 0 deletions

View File

@ -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',
],
}

View File

@ -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\"]"