]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
runqemu: don't fail during check_arg_machine() joshuagl/runqemu
authorJoshua Lock <joshua.g.lock@intel.com>
Wed, 21 Sep 2016 15:26:52 +0000 (16:26 +0100)
committerJoshua Lock <joshua.g.lock@intel.com>
Wed, 21 Sep 2016 19:02:31 +0000 (20:02 +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>
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 = ""