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

Changeset 65:ed1ecd161295 (2020-11-10)
Previous changeset 64:30847b2e105d (2020-11-10) Next changeset 66:bc1977b1f7b5 (2020-11-11)
Commit message:
Uploaded
modified:
toolfactory/rgToolFactory2.py
toolfactory/test-data/toolfactory_pyrevpos_tgz_sample
added:
toolfactory/test-data/pyrevpos.python
b
diff -r 30847b2e105d -r ed1ecd161295 toolfactory/rgToolFactory2.py
--- 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():
b
diff -r 30847b2e105d -r ed1ecd161295 toolfactory/test-data/pyrevpos.python
--- /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() 
+
b
diff -r 30847b2e105d -r ed1ecd161295 toolfactory/test-data/toolfactory_pyrevpos_tgz_sample
b
Binary file toolfactory/test-data/toolfactory_pyrevpos_tgz_sample has changed