]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
oeqa/qemurunner: make the error message about invalid rootfs clearer
authorCorentin Guillevic <corentin.guillevic@smile.fr>
Wed, 18 Mar 2026 16:00:58 +0000 (17:00 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Mar 2026 11:15:42 +0000 (11:15 +0000)
Printing "Invalid rootfs" when the rootfs image simply doesn't exist can
be misleading to the user. Print a clearer message to help users understand
the issue.

Signed-off-by: Corentin Guillevic <corentin.guillevic@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/qemurunner.py

index 1ceeeff96a460f7d93f80d92a50ee23effc47aab..5979b526508fbbb73d1ebf8b92d468164f7451ef 100644 (file)
@@ -150,7 +150,7 @@ class QemuRunner:
             # interact badly with screensavers.
             env["QEMU_DONT_GRAB"] = "1"
         if not os.path.exists(self.rootfs):
-            self.logger.error("Invalid rootfs %s" % self.rootfs)
+            self.logger.error("rootfs %s does not exist" % self.rootfs)
             return False
         if not os.path.exists(self.tmpdir):
             self.logger.error("Invalid TMPDIR path %s" % self.tmpdir)