From 88c87ea067b801801f10bfee3bf46af46522e605 Mon Sep 17 00:00:00 2001 From: Peter Hillman Date: Tue, 18 Jun 2024 16:05:49 +1200 Subject: [PATCH] fix test for parameters Signed-off-by: Peter Hillman --- src/test/bin/test_exrmetrics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/bin/test_exrmetrics.py b/src/test/bin/test_exrmetrics.py index 9420fa7442..debdb44847 100644 --- a/src/test/bin/test_exrmetrics.py +++ b/src/test/bin/test_exrmetrics.py @@ -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 @@ -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