Skip to content

Commit

Permalink
fix test for parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hillman <[email protected]>
  • Loading branch information
peterhillman committed Jun 18, 2024
1 parent 89720cb commit 88c87ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/bin/test_exrmetrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def cleanup():
# test missing arguments, using just the -option but no value

for a in ["-p","-l","-16","-z"]:
result = run ([exrmetrics, a[0]], stdout=PIPE, stderr=PIPE, universal_newlines=True)
result = run ([exrmetrics, a], stdout=PIPE, stderr=PIPE, universal_newlines=True)
print(" ".join(result.args))
print(result.stderr)
assert(result.returncode != 0), "\n"+result.stderr
Expand All @@ -60,6 +60,7 @@ def cleanup():

result = run (command, stdout=PIPE, stderr=PIPE, universal_newlines=True)
print(" ".join(result.args))
print(result.stdout)
assert(result.returncode == 0), "\n"+result.stderr
assert(os.path.isfile(outimage)), "\nMissing " + outimage

Expand Down

0 comments on commit 88c87ea

Please sign in to comment.