diff mbox series

[3/3] oeqa/qemutinyrunner: fix NameError when RUNQEMU_TMPFS_DIR is set

Message ID 20261121053846.3614417-3-ragaprasanth@gmail.com
State New
Headers show
Series [1/3] recipeutils: fix NameError for recipes with unreliable upstream checks | expand

Commit Message

Prasanth R Nov. 21, 2026, 5:38 a.m. UTC
QemuTinyRunner.start() sets RUNQEMU_TMPFS_DIR in env, which only exists
in QemuRunner.start(). With RUNQEMU_TMPFS_DIR set, testimage on
poky-tiny fails with:

  NameError: name 'env' is not defined

Use os.environ, like the other variables set in this function.

AI-Generated: Uses Claude
Signed-off-by: Prasanth R <prasanth.r@lineo.co.jp>
---
 meta/lib/oeqa/utils/qemutinyrunner.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/lib/oeqa/utils/qemutinyrunner.py b/meta/lib/oeqa/utils/qemutinyrunner.py
index 0510977e9d..917bafdeaf 100644
--- a/meta/lib/oeqa/utils/qemutinyrunner.py
+++ b/meta/lib/oeqa/utils/qemutinyrunner.py
@@ -86,7 +86,7 @@  class QemuTinyRunner(QemuRunner):
         else:
             os.environ["DEPLOY_DIR_IMAGE"] = self.deploy_dir_image
         if self.tmpfsdir:
-            env["RUNQEMU_TMPFS_DIR"] = self.tmpfsdir
+            os.environ["RUNQEMU_TMPFS_DIR"] = self.tmpfsdir
 
 
         # Set this flag so that Qemu doesn't do any grabs as SDL grabs interact