mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
f9eb958a8a
commit
ef70e137b2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user