Skip to content

Commit

Permalink
Print output from validation tool on error
Browse files Browse the repository at this point in the history
Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
  • Loading branch information
rtobar committed Jun 3, 2020
1 parent 67cc53c commit 01002b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions daliuge-translator/test/dropmake/test_pg_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,6 @@ def test_cwl_translate(self):
zip_ref.close()

cmd = ['cwltool', '--validate', out]
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
p.communicate()
self.assertEqual(p.returncode, 0)
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = p.communicate()
self.assertEqual(p.returncode, 0, b'stdout:\n' + stdout + b'\nstderr:\n' + stderr)

0 comments on commit 01002b6

Please sign in to comment.