Currently, client.shared.test file will make and copy src dir while this
dir may be remove in client.shared.base_utils. So it may be a waste of time
Just try not to do this is OK.

Another question: to copy the patch files needs the parent dir of srcdir, so
avoid copy patch files here

Signed-off-by: Mike Qiu <[email protected]>
---
 client/shared/test.py |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/client/shared/test.py b/client/shared/test.py
index 67c6e2f..0626442 100644
--- a/client/shared/test.py
+++ b/client/shared/test.py
@@ -58,17 +58,6 @@ class base_test(object):
                                                        default=tmpdir)
         self.srcdir = os.path.join(output_config, 
os.path.basename(self.bindir),
                                    'src')
-        source_code_dir = os.path.join(self.bindir, 'src')
-        if not os.path.isdir(self.srcdir):
-            if os.path.isdir(source_code_dir):
-                shutil.copytree(source_code_dir, self.srcdir)
-            else:
-                os.makedirs(self.srcdir)
-        patch_file_list = glob.glob(os.path.join(self.bindir, "*.patch"))
-        for patch_src in patch_file_list:
-            patch_dst = os.path.join(os.path.dirname(self.srcdir),
-                                     os.path.basename(patch_src))
-            shutil.copyfile(patch_src, patch_dst)
         self.tmpdir = tempfile.mkdtemp("_" + self.tagged_testname,
                                        dir=job.tmpdir)
         self._keyvals = []
-- 
1.7.7.6

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to