Hi Lucas As you see ,while we run the test cases,like dbt2, it will create a bin file named dbt2.pyc in the bindir for speed up, I think this makes the tests dir none "ready-only". So I write a patch to remove the bin file ,to make the tests dir seems "ready-only" I don't know if it is needed Thanks Mike
在 2012-08-02四的 20:17 +0800,Mike Qiu写道: > 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) _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
