summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephano Cetola <stephano.cetola@linux.intel.com>2016-09-22 18:25:08 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-23 18:06:10 +0100
commit3b6494fad2b8b65e0d52cda0cdf500e93c72823a (patch)
tree1a22dcd254b37ff697aa0d5589fb68246848ac11 /scripts
parent3d1d287785c388bebba2ba1f2d8f843a5c6a2417 (diff)
downloadopenembedded-core-3b6494fad2b8b65e0d52cda0cdf500e93c72823a.tar.gz
openembedded-core-3b6494fad2b8b65e0d52cda0cdf500e93c72823a.tar.bz2
openembedded-core-3b6494fad2b8b65e0d52cda0cdf500e93c72823a.zip
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@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 5095e67817..45bcad7a80 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