Hi Lucas This three patches is to move the download cache dir to tmp, to keep no changes in test case dir.
I think another way to fix it,is to change it in method unmap_url_cache() for globe change, but it also need to change the code in test cases,because all of the test cases, which need to download the file from internet , are make the cache dir in self.bindir in method setup . So I choose this way to fix it, Any comments ? Thanks Mike 在 2012-08-02四的 11:08 +0800,Mike Qiu写道: > Currently,in test case dma_memtest,it put the cache dir,which used to put > the download files in it, down to self.bindir. > Now Chang the cache dir to parent dir of self.srcdir,that is to > say by default is client/tmp/dma_memtest/cache > > Signed-off-by: Mike Qiu <[email protected]> > --- > client/tests/dma_memtest/dma_memtest.py | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/client/tests/dma_memtest/dma_memtest.py > b/client/tests/dma_memtest/dma_memtest.py > index e0eef67..e4cf17b 100644 > --- a/client/tests/dma_memtest/dma_memtest.py > +++ b/client/tests/dma_memtest/dma_memtest.py > @@ -14,7 +14,7 @@ class dma_memtest(test.test): > """ > version = 1 > def initialize(self): > - self.cachedir = os.path.join(self.bindir, 'cache') > + self.cachedir = os.path.join(os.path.dirname(self.srcdir), 'cache') > self.nfail = 0 > > _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
