[oe-commits] [openembedded-core] 04/05: runqemu: don't fail during check_arg_machine()

git at git.openembedded.org git at git.openembedded.org
Wed Sep 21 21:02:49 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit ed8d6f391c567048bd50dc3234804915f8212cef
Author: Joshua Lock <joshua.g.lock at intel.com>
AuthorDate: Wed Sep 21 20:35:39 2016 +0100

    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
    
    Signed-off-by: Joshua Lock <joshua.g.lock at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/runqemu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index e8360c2..658f7c8 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 = ""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list