stdoutname = subst.do_substitution(p, p["stdout"])
stdoutfile = open(stdoutname, "wb")
- print("run-command running: {}{}".format(' '.join(cmd), (" > " + stdoutname) if stdoutname != None else ""))
+ print("run-command {}{}".format(' '.join(cmd), (" > " + stdoutname) if stdoutname != None else ""))
rcode = subprocess.call(cmd, stdout=stdoutfile)
for l in links:
os.unlink(l)
+ print("run-command output:")
+
+ subprocess.call(["find", "."])
+
+ print("run-command writing to keep")
+
out = arvados.CollectionWriter()
out.write_directory_tree(".", max_manifest_depth=0)
outuuid = out.finish()
os.chdir("..")
shutil.rmtree("tmpdir")
shutil.rmtree("output")
+ print("run-command success")
+else:
+ print("run-command failed")
sys.exit(rcode)