test: Don't mount build sources into image when running non-interactively

This commit is contained in:
Daan De Meyer
2024-07-29 13:40:42 +02:00
parent 8da8d6ce30
commit 578ee05155
2 changed files with 1 additions and 2 deletions

View File

@@ -159,8 +159,6 @@ jobs:
[Host]
QemuMem=4G
# We build with debuginfo so there's no point in mounting the sources into the machine.
RuntimeBuildSources=no
EOF
- name: Generate secure boot key

View File

@@ -154,6 +154,7 @@ def main():
),
]),
'--credential', f"journal.storage={'persistent' if sys.stderr.isatty() else args.storage}",
*(['--runtime-build-sources=no'] if not sys.stderr.isatty() else []),
'qemu' if args.vm or os.getuid() != 0 else 'boot',
]