aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <joshua.g.lock@intel.com>2016-09-21 14:06:56 +0100
committerJoshua Lock <joshua.g.lock@intel.com>2016-09-21 20:02:31 +0100
commit0066e9094d7f4a0fc2db37bfb5625ec73cec1b98 (patch)
tree69f07002a5493914a3a7db538921838be7a1a00c
parentb2771e17a5f301423f65be9f93c9c1b1e7f8ab93 (diff)
downloadopenembedded-core-contrib-0066e9094d7f4a0fc2db37bfb5625ec73cec1b98.tar.gz
runqemu: validate paths and attempt to infer unset paths
We need to validate and ensure all paths are set regardless of whether runqemu was invoked with a .qemuboot.conf file or otherwise. Split this logic out into a separate method called during check_and_set() Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
-rwxr-xr-xscripts/runqemu3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 08dc306921..5170d87570 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -536,6 +536,7 @@ class BaseConfig(object):
def check_and_set(self):
"""Check configs sanity and set when needed"""
+ self.validate_paths()
check_tun()
# Check audio
if self.audio_enabled:
@@ -598,6 +599,8 @@ class BaseConfig(object):
k_upper = k.upper()
self.set(k_upper, v)
+ def validate_paths(self):
+ """Ensure all relevant path variables are set"""
# When we're started with a *.qemuboot.conf arg assume that image
# artefacts are relative to that file, rather than in whatever
# directory DEPLOY_DIR_IMAGE in the conf file points to.