changeset 65:ed1ecd161295 draft

Uploaded
author fubar
date Tue, 10 Nov 2020 23:53:32 +0000
parents 30847b2e105d
children bc1977b1f7b5
files toolfactory/rgToolFactory2.py toolfactory/test-data/pyrevpos.python toolfactory/test-data/toolfactory_pyrevpos_tgz_sample
diffstat 3 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/toolfactory/rgToolFactory2.py	Tue Nov 10 03:24:28 2020 +0000
+++ b/toolfactory/rgToolFactory2.py	Tue Nov 10 23:53:32 2020 +0000
@@ -843,7 +843,6 @@
             p = subprocess.run(
                     cll, shell=False, cwd=self.tooloutdir, stderr=dummy, stdout=dummy,
                 )
-            dummy.close() # throw all the log away as it will be rerun after outputs are generated
         else:
             cll = ["planemo", "test", "--galaxy_root",
                 self.args.galaxy_root,
@@ -927,6 +926,8 @@
                 dest = os.path.join(self.repdir, ofn)
                 src = os.path.join(self.tooloutdir, entry.name)
                 shutil.copyfile(src, dest)
+                if entry.name.startswith('tool_test_output'):
+                    os.unlink(src)
 
 
 def main():
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/toolfactory/test-data/pyrevpos.python	Tue Nov 10 23:53:32 2020 +0000
@@ -0,0 +1,13 @@
+# reverse order of text by row
+import sys
+inp = sys.argv[1]
+outp = sys.argv[2]
+i = open(inp,'r').readlines()
+o = open(outp,'w')
+for row in i:
+   rs = row.rstrip()
+   rs = list(rs)
+   rs.reverse()
+   o.write(''.join(rs))
+o.close() 
+
Binary file toolfactory/test-data/toolfactory_pyrevpos_tgz_sample has changed