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.

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

diff --git a/client/shared/test.py b/client/shared/test.py
index 67c6e2f..145824f 100644
--- a/client/shared/test.py
+++ b/client/shared/test.py
@@ -58,12 +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),
-- 
1.7.7.6

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

Reply via email to