diff options
Diffstat (limited to 'meta/lib/oeqa/utils/commands.py')
-rw-r--r-- | meta/lib/oeqa/utils/commands.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index 8059cbce3e..8b3e12038d 100644 --- a/meta/lib/oeqa/utils/commands.py +++ b/meta/lib/oeqa/utils/commands.py | |||
@@ -188,7 +188,10 @@ def runCmd(command, ignore_status=False, timeout=None, assert_error=True, sync=T | |||
188 | # call sync around the tests to ensure the IO queue doesn't get too large, taking any IO | 188 | # call sync around the tests to ensure the IO queue doesn't get too large, taking any IO |
189 | # hit here rather than in bitbake shutdown. | 189 | # hit here rather than in bitbake shutdown. |
190 | if sync: | 190 | if sync: |
191 | p = os.environ['PATH'] | ||
192 | os.environ['PATH'] = "/usr/bin:/bin:/usr/sbin:/sbin:" + p | ||
191 | os.system("sync") | 193 | os.system("sync") |
194 | os.environ['PATH'] = p | ||
192 | 195 | ||
193 | result.command = command | 196 | result.command = command |
194 | result.status = cmd.status | 197 | result.status = cmd.status |