]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 29 Jul 2024 11:40:42 +0000 (13:40 +0200)
.github/workflows/mkosi.yml
test/integration-test-wrapper.py

index 7070e9c636440e8d72726bc4dc7ac290a3e3d120..124dc6fcc4a242cf4877a25bffd88812f3e58190 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',
     ]