test: Don't mount build sources into image when running non-interactively
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 29 Jul 2024 11:40:42 +0000 (13:40 +0200)
committerLuca Boccassi <bluca@debian.org>
Thu, 15 Aug 2024 12:08:37 +0000 (13:08 +0100)
(cherry picked from commit 578ee05155c0f6d8cc07f785fcc636037545c8da)

.github/workflows/mkosi.yml
test/integration-test-wrapper.py

index 28b2829bbdcfc4b6d6cff382a10e6aaf146935ed..58421589ea0e352d527e062d5bc1ee226d3e1cba 100644 (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
index d7a622abe80c177772fd8c730b8c1597a6832ada..596761aa89df78fa5c5803d9a7f3ee46bd3e171a 100755 (executable)
@@ -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',
     ]