diff toolfactory/rgToolFactory2.py @ 96:d54976fc996a draft

Uploaded
author fubar
date Fri, 20 Nov 2020 09:06:25 +0000
parents 6d122fd54cd0
children 515be7318f2b
line wrap: on
line diff
--- a/toolfactory/rgToolFactory2.py	Fri Nov 20 06:38:14 2020 +0000
+++ b/toolfactory/rgToolFactory2.py	Fri Nov 20 09:06:25 2020 +0000
@@ -967,8 +967,6 @@
             cll = [
                 "planemo",
                 "test",
-                "--test_data", os.path.abspath(self.testdir),
-                "--test_output", os.path.abspath(tool_test_path),
                 "--skip_venv",
                 "--galaxy_root",
                 self.args.galaxy_root,
@@ -978,7 +976,7 @@
             p = subprocess.run(
                 cll,
                 shell=False,
-                cwd=self.tooloutdir,
+                cwd=self.testdir,
                 stderr=dummy,
                 stdout=dummy,
             )
@@ -995,7 +993,7 @@
                 os.path.abspath(xreal),
             ]
             p = subprocess.run(
-                cll, shell=False, cwd=self.tooloutdir, stderr=tout, stdout=tout
+                cll, shell=False, cwd=self.testdir, stderr=tout, stdout=tout
             )
         tout.close()
         return p.returncode
@@ -1045,11 +1043,12 @@
             )
 
         for p in self.outfiles:
-            src = p[ONAMEPOS]
+            oname = p[ONAMEPOS]
+            src = os.path.join(self.testdir,oname)
             if os.path.isfile(src):
-                dest = os.path.join(self.testdir, "%s_sample" % src)
+                dest = os.path.join(self.testdir, "%s_sample" % oname)
                 shutil.copyfile(src, dest)
-                dest = os.path.join(self.repdir, "%s.%s" % (src, p[OFMTPOS]))
+                dest = os.path.join(self.repdir, "%s.sample" % (oname))
                 shutil.copyfile(src, dest)
             else:
                 print(