Conditonally output stderr

This commit is contained in:
Thomas Hobson 2021-04-25 17:17:19 +12:00
parent 51267c3526
commit 2961bdc604
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 1 additions and 1 deletions

View File

@ -17,5 +17,5 @@ do
echo "==$test_file: $language-$lang_ver=="
#jq '.' <<<"$result"
jq -r '.compile.output + .run.output' <<<$result
jq -r 'if (.run.stdout | contains("OK") ) then (.run.stdout) else (.compile.output + .run.output) end' <<<$result
done