[oe-commits] [openembedded-core] 01/05: runqemu: validate paths and attempt to infer unset paths

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


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

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

    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 at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/runqemu | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/runqemu b/scripts/runqemu
index 08dc306..5170d87 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.

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


More information about the Openembedded-commits mailing list