From: Joshua Lock Date: Wed, 21 Sep 2016 19:35:39 +0000 (+0100) Subject: runqemu: don't fail during check_arg_machine() X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~24134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed8d6f391c567048bd50dc3234804915f8212cef;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/scripts/runqemu b/scripts/runqemu index e8360c2af1c..658f7c8abd8 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 = ""