From: Mike Qiu <[email protected]>

Currently, client.shared.test will create a source
code directory that might be removed right away on
client.shared.base_utils.update_version function.

So, let's decide whether to create/copy the source
code directory on that function, rather than on the
test class.

Signed-off-by: Mike Qiu <[email protected]>
---
 client/shared/test.py | 11 -----------
 1 file changed, 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.11.2

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

Reply via email to