summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
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-24 07:30:10 +0100
commit1d1f94b944161a0db78985b8f58da0828d68ce71 (patch)
treef15cb5890da6d4e45a35047ec4572b07859aaae3 /scripts/runqemu
parentf82cc4b7681d48f10295caaac5c23704e2b93937 (diff)
downloadpoky-1d1f94b944161a0db78985b8f58da0828d68ce71.tar.gz
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. (From OE-Core rev: 3b6494fad2b8b65e0d52cda0cdf500e93c72823a) Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-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):
786 self.cleantap = True 786 self.cleantap = True
787 logger.info('Created tap: %s' % tap) 787 logger.info('Created tap: %s' % tap)
788 788
789 if not tap:
790 logger.error("Failed to setup tap device. Run runqemu-gen-tapdevs to manually create.")
791 return 1
789 self.tap = tap 792 self.tap = tap
790 n0 = tap[3:] 793 n0 = tap[3:]
791 n1 = int(n0) * 2 + 1 794 n1 = int(n0) * 2 + 1