[oe-commits] Stefan Stanacar : oeqa/utils/qemurunner: fix wrong var in message

git at git.openembedded.org git at git.openembedded.org
Tue Aug 6 11:53:57 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 601738fee3e9b7909b63714ca725576c10eec1e3
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=601738fee3e9b7909b63714ca725576c10eec1e3

Author: Stefan Stanacar <stefanx.stanacar at intel.com>
Date:   Sun Aug  4 12:15:40 2013 +0300

oeqa/utils/qemurunner: fix wrong var in message

If nothing matches we should print the text not
the match, else we get a nice traceback.

Changed in V2:
 - commit message

Signed-off-by: Stefan Stanacar <stefanx.stanacar at intel.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/lib/oeqa/utils/qemurunner.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 45b3ccb..d086203 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -74,7 +74,7 @@ class QemuRunner:
                 console.write("root\n")
                 (index, match, text) = console.expect([r"(root@[\w-]+:~#)"],10)
                 if not match:
-                    bb.note("Couldn't get prompt, all I got was:\n%s" % match.group(0))
+                    bb.note("Couldn't get prompt, all I got was:\n%s" % text)
                     return False
                 console.write("ip addr show `ip route list | sed -n '1p' | awk '{print $5}'` | sed -n '3p' | awk '{ print $2 }' | cut -f 1 -d \"/\"\n")
                 (index, match, text) = console.expect([r"((?:[0-9]{1,3}\.){3}[0-9]{1,3})"],10)



More information about the Openembedded-commits mailing list