Currently, when run the test,always create the testname.pyc file in the test dir automatically,this makes test dir seems none-read-only This change will remove the pyc file after the test finish
Signed-off-by: Mike Qiu <[email protected]> --- client/shared/test.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/client/shared/test.py b/client/shared/test.py index f408f2e..f23d372 100644 --- a/client/shared/test.py +++ b/client/shared/test.py @@ -949,3 +949,7 @@ def runtest(job, url, tag, args, dargs, if after_test_hook: after_test_hook(mytest) shutil.rmtree(mytest.tmpdir, ignore_errors=True) + #Now the job will finish,clear the pyc files + pyc_file_list = glob.glob(os.path.join(bindir, "*.pyc")) + for pyc_file in pyc_file_list: + os.remove(pyc_file) -- 1.7.7.6 _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
