]> code.ossystems Code Review - openembedded-core.git/commitdiff
runqemu: don't fail during check_arg_machine()
authorJoshua Lock <joshua.g.lock@intel.com>
Wed, 21 Sep 2016 19:35:39 +0000 (20:35 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Sep 2016 20:59:14 +0000 (21:59 +0100)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu

index e8360c2af1ca9317651f7e07e4fa2693eb2331b9..658f7c8abd8e59a0940b291ca5dfa8c19f23e345 100755 (executable)
@@ -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 = ""