[oe-commits] [openembedded-core] 22/26: scripts/runqemu: provide better error message on runqemu ifup fail
git at git.openembedded.org
git at git.openembedded.org
Fri Sep 23 17:07:04 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 3b6494fad2b8b65e0d52cda0cdf500e93c72823a
Author: Stephano Cetola <stephano.cetola at linux.intel.com>
AuthorDate: Thu Sep 22 18:25:08 2016 -0700
scripts/runqemu: provide better error message on runqemu ifup fail
If runqemu-ifup fails hen running testimage, a rather cryptic error
regarding "no tty present" is displayed. If this step fails, we
should at least point the user at runqemu-gen-tapdevs. A quick search
of this term in the manual will lead them to "Enabling Runtime Tests
on QEMU" which should give them all the info they need.
Signed-off-by: Stephano Cetola <stephano.cetola at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/runqemu | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/runqemu b/scripts/runqemu
index 5095e67..45bcad7 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -786,6 +786,9 @@ class BaseConfig(object):
self.cleantap = True
logger.info('Created tap: %s' % tap)
+ if not tap:
+ logger.error("Failed to setup tap device. Run runqemu-gen-tapdevs to manually create.")
+ return 1
self.tap = tap
n0 = tap[3:]
n1 = int(n0) * 2 + 1
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list