summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2017-01-10 12:46:58 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-01 11:17:44 +0000
commit29618da02dee90b8303aaab42153796ebe6db518 (patch)
treec2bcdd84e1ba8135c58bbb1bde021ddc3917a61c /scripts/runqemu
parent3ee86f53266ba9fef1b61b6e790eddc3b6b1a944 (diff)
downloadpoky-29618da02dee90b8303aaab42153796ebe6db518.tar.gz
runqemu: fix undefined variable reference in check_arg_path()
'arg' isn't defined, the right name there is 'p'. This fixes a rather obscure error message when that code path ends up being taken: $ runqemu some/existing-file-name runqemu - ERROR - name 'arg' is not defined runqemu - ERROR - Try 'runqemu help' on how to use it (From OE-Core rev: 3f11e4cbb36fc65ff92296065e5f0a508b210ac7) Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index d74f252ec1..195f432810 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -314,7 +314,7 @@ class BaseConfig(object):
314 else: 314 else:
315 raise Exception("Can't find FSTYPE from: %s" % p) 315 raise Exception("Can't find FSTYPE from: %s" % p)
316 316
317 elif os.path.isdir(p) or re.search(':', arg) and re.search('/', arg): 317 elif os.path.isdir(p) or re.search(':', p) and re.search('/', p):
318 if self.is_deploy_dir_image(p): 318 if self.is_deploy_dir_image(p):
319 logger.info('DEPLOY_DIR_IMAGE: %s' % p) 319 logger.info('DEPLOY_DIR_IMAGE: %s' % p)
320 self.set("DEPLOY_DIR_IMAGE", p) 320 self.set("DEPLOY_DIR_IMAGE", p)