summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/utils/commands.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index 3a68b001b7..0425c9fd98 100644
--- a/meta/lib/oeqa/utils/commands.py
+++ b/meta/lib/oeqa/utils/commands.py
@@ -97,9 +97,16 @@ class Result(object):
97 pass 97 pass
98 98
99 99
100def runCmd(command, ignore_status=False, timeout=None, assert_error=True, **options): 100def runCmd(command, ignore_status=False, timeout=None, assert_error=True, native_sysroot=None, **options):
101 result = Result() 101 result = Result()
102 102
103 if native_sysroot:
104 extra_paths = "%s/sbin:%s/usr/sbin:%s/usr/bin" % \
105 (native_sysroot, native_sysroot, native_sysroot)
106 nenv = dict(options.get('env', os.environ))
107 nenv['PATH'] = extra_paths + ':' + nenv.get('PATH', '')
108 options['env'] = nenv
109
103 cmd = Command(command, timeout=timeout, **options) 110 cmd = Command(command, timeout=timeout, **options)
104 cmd.run() 111 cmd.run()
105 112