aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <joshua.g.lock@intel.com>2016-09-21 16:26:52 +0100
committerJoshua Lock <joshua.g.lock@intel.com>2016-09-21 20:02:31 +0100
commitac51009d76d1297d48163c39ebd1c4b3c081601f (patch)
tree0e368f6fce0ebbdf9aa145c0946a31e265f23204
parent3943a27225a79ad5f038a484377dd51ad4ffa249 (diff)
downloadopenembedded-core-contrib-joshuagl/runqemu.tar.gz
openembedded-core-contrib-joshuagl/runqemu.tar.bz2
openembedded-core-contrib-joshuagl/runqemu.zip
runqemu: don't fail during check_arg_machine()joshuagl/runqemu
If DEPLOY_DIR_IMAGE doesn't exist during check_arg_machine() we will attempt to guess a suitable value later when check_and_set() calls validate_paths(), therefore this shouldn't raise an exception Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
-rwxr-xr-xscripts/runqemu2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index e8360c2af1..658f7c8abd 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -332,7 +332,7 @@ class BaseConfig(object):
self.set_machine_deploy_dir(arg, deploy_dir_image)
else:
logger.error("%s not a directory valid DEPLOY_DIR_IMAGE" % deploy_dir_image)
- raise Exception("Failed to set MACHINE to %s. Unknown arg: %s" % (arg, arg))
+ self.set("MACHINE", arg)
def check_args(self):
unknown_arg = ""