Skip to content

Commit 2717c60

Browse files
jmchiltonmr-c
authored andcommitted
Improved error handling in cwltest.py. (#70)
1 parent 1a0e556 commit 2717c60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cwltool/cwltest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def run_test(args, i, t): # type: (argparse.Namespace, Any, Dict[str,str]) -> i
8787

8888
outstr = subprocess.check_output(test_command)
8989
out = yaml.load(outstr)
90+
if not isinstance(out, dict):
91+
raise ValueError("Non-dict value parsed from output string.")
9092
except ValueError as v:
9193
_logger.error(str(v))
9294
_logger.error(outstr)

0 commit comments

Comments
 (0)