Repository 'tool_factory_2'
hg clone https://toolshed.g2.bx.psu.edu/repos/fubar/tool_factory_2

Changeset 96:d54976fc996a (2020-11-20)
Previous changeset 95:6d122fd54cd0 (2020-11-20) Next changeset 97:515be7318f2b (2020-11-21)
Commit message:
Uploaded
modified:
toolfactory/rgToolFactory2.py
b
diff -r 6d122fd54cd0 -r d54976fc996a toolfactory/rgToolFactory2.py
--- 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(