diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-07-30 19:25:15 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-01 11:27:54 +0100 |
commit | ef70e137b23e4c5add7b9561ebc5ef9393608a9b (patch) | |
tree | ff11ecda50f058d52cbccb6fd8f0335c65cfc3a9 | |
parent | f9eb958a8a3062a0f7e525177518bc761f0c0bef (diff) | |
download | poky-ef70e137b23e4c5add7b9561ebc5ef9393608a9b.tar.gz |
bitbake: toaster: tts: delete pyc files before the tests start
There may be leftover *.pyc files from previous code runs in the
current checkout directory, so we delete everything before
starting the tests, to make sure that we actually testing the
current checkout.
(Bitbake rev: db29ef9ab23c9f083e9aa175b28430f122f35a84)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bitbake/lib/toaster/contrib/tts/runner.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/contrib/tts/runner.py b/bitbake/lib/toaster/contrib/tts/runner.py index 3fd1b66e64..6fc3e77523 100755 --- a/bitbake/lib/toaster/contrib/tts/runner.py +++ b/bitbake/lib/toaster/contrib/tts/runner.py | |||
@@ -200,6 +200,10 @@ def main(): | |||
200 | testdir = set_up_test_branch(settings, args[0]) # we expect a branch name as first argument | 200 | testdir = set_up_test_branch(settings, args[0]) # we expect a branch name as first argument |
201 | 201 | ||
202 | config.TESTDIR = testdir # we let tests know where to run | 202 | config.TESTDIR = testdir # we let tests know where to run |
203 | |||
204 | # ensure that the test dir only contains no *.pyc leftovers | ||
205 | run_shell_cmd("find '%s' -type f -name *.pyc -exec rm {} \;" % testdir) | ||
206 | |||
203 | no_failures = execute_tests(testdir, options.singletest) | 207 | no_failures = execute_tests(testdir, options.singletest) |
204 | 208 | ||
205 | except ShellCmdException as exc: | 209 | except ShellCmdException as exc: |