diff options
author | Stefan Stanacar <stefanx.stanacar@intel.com> | 2013-08-04 12:15:40 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-06 12:39:57 +0100 |
commit | 76f8dfe2ad742991b72c45c23f057d398bd2f0de (patch) | |
tree | d50d5c9e28945b8be56a0c8d8d9e383210d66fbb /meta/lib/oeqa/utils/qemurunner.py | |
parent | 3b0be885c48b748c3f0531fa5b73f229453f6814 (diff) | |
download | poky-76f8dfe2ad742991b72c45c23f057d398bd2f0de.tar.gz |
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
(From OE-Core rev: 601738fee3e9b7909b63714ca725576c10eec1e3)
Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils/qemurunner.py')
-rw-r--r-- | 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 45b3ccb789..d086203c04 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py | |||
@@ -74,7 +74,7 @@ class QemuRunner: | |||
74 | console.write("root\n") | 74 | console.write("root\n") |
75 | (index, match, text) = console.expect([r"(root@[\w-]+:~#)"],10) | 75 | (index, match, text) = console.expect([r"(root@[\w-]+:~#)"],10) |
76 | if not match: | 76 | if not match: |
77 | bb.note("Couldn't get prompt, all I got was:\n%s" % match.group(0)) | 77 | bb.note("Couldn't get prompt, all I got was:\n%s" % text) |
78 | return False | 78 | return False |
79 | 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") | 79 | 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") |
80 | (index, match, text) = console.expect([r"((?:[0-9]{1,3}\.){3}[0-9]{1,3})"],10) | 80 | (index, match, text) = console.expect([r"((?:[0-9]{1,3}\.){3}[0-9]{1,3})"],10) |