summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <joshua.g.lock@intel.com>2016-09-21 20:35:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-21 22:02:16 +0100
commit9294261c03de28c8de0ffa039f193fddd99f7e98 (patch)
tree90f37ae85d280c5a2240429382c61a90104e6d94
parent5d3c56f2a5a5b72592cf5be1ecd6854b22b9c781 (diff)
downloadpoky-9294261c03de28c8de0ffa039f193fddd99f7e98.tar.gz
runqemu: don't fail during check_arg_machine()
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 (From OE-Core rev: ed8d6f391c567048bd50dc3234804915f8212cef) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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):
332 self.set_machine_deploy_dir(arg, deploy_dir_image) 332 self.set_machine_deploy_dir(arg, deploy_dir_image)
333 else: 333 else:
334 logger.error("%s not a directory valid DEPLOY_DIR_IMAGE" % deploy_dir_image) 334 logger.error("%s not a directory valid DEPLOY_DIR_IMAGE" % deploy_dir_image)
335 raise Exception("Failed to set MACHINE to %s. Unknown arg: %s" % (arg, arg)) 335 self.set("MACHINE", arg)
336 336
337 def check_args(self): 337 def check_args(self):
338 unknown_arg = "" 338 unknown_arg = ""