From ef70e137b23e4c5add7b9561ebc5ef9393608a9b Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Thu, 30 Jul 2015 19:25:15 +0300 Subject: 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 Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- bitbake/lib/toaster/contrib/tts/runner.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bitbake/lib') 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(): testdir = set_up_test_branch(settings, args[0]) # we expect a branch name as first argument config.TESTDIR = testdir # we let tests know where to run + + # ensure that the test dir only contains no *.pyc leftovers + run_shell_cmd("find '%s' -type f -name *.pyc -exec rm {} \;" % testdir) + no_failures = execute_tests(testdir, options.singletest) except ShellCmdException as exc: -- cgit v1.2.3-54-g00ecf