[elbe-devel] [PATCH] elbepack: check-build: spawn qemu in build directory

Thomas Weißschuh thomas.weissschuh at linutronix.de
Thu Apr 25 14:26:21 CEST 2024


Commit adda084305d2 ("elbepack: check-build: drop call to chdir()")
dropped the global calls to chdir, but the arguments passed to qemu from
the source XML are relative to the build directory.

So explicitly spawn qemu there.

Fixes: adda084305d2 ("elbepack: check-build: drop call to chdir()")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/commands/check-build.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/commands/check-build.py b/elbepack/commands/check-build.py
index 91dcc057b7b3..2b23650d8049 100644
--- a/elbepack/commands/check-build.py
+++ b/elbepack/commands/check-build.py
@@ -506,7 +506,7 @@ class CheckImage(CheckBase):
 
     def do_comm(self, img_name, qemu, opts, comm):
 
-        child = pexpect.spawn(qemu + ' ' + opts)
+        child = pexpect.spawn(qemu + ' ' + opts, cwd=self.directory)
         transcript = []
         ret = 0
 

---
base-commit: 97b4d7bd2c795c1b371d0b83194d46fa01419734
change-id: 20240425-qemu-cwd-359692cb721e

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh at linutronix.de>



More information about the elbe-devel mailing list