# HG changeset patch # User fubar # Date 1605863185 0 # Node ID d54976fc996a581ecbc2270628c34a16e642e319 # Parent 6d122fd54cd0751b94e6af32841509c6cacd3032 Uploaded 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(