[bitbake-devel] [PATCH 07/11] toaster: tts: delete pyc files before the tests start
Ed Bartosh
ed.bartosh at linux.intel.com
Thu Jul 30 16:25:15 UTC 2015
From: Alexandru DAMIAN <alexandru.damian at intel.com>
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.
Signed-off-by: Alexandru DAMIAN <alexandru.damian at intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
lib/toaster/contrib/tts/runner.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/toaster/contrib/tts/runner.py b/lib/toaster/contrib/tts/runner.py
index 3fd1b66..6fc3e77 100755
--- a/lib/toaster/contrib/tts/runner.py
+++ b/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:
--
2.1.4
More information about the bitbake-devel
mailing list