Skip to content
Snippets Groups Projects
Commit f7d9016d authored by jonny's avatar jonny
Browse files

use pipe jq because input read fails in docker

print commands
parent 092241af
No related branches found
No related tags found
No related merge requests found
Pipeline #13305 failed
......@@ -3,7 +3,7 @@ TEST_FOLDERS=$(ls -d */)
FAILED=0
set -euo pipefail
set -euox pipefail
if ! command -v jq &> /dev/null
then
......@@ -16,7 +16,7 @@ do
dir=${folder%/}
if [ "$dir" != "test-output" ]; then
echo "running for $dir"
EXPECTED=$(jq . "./${dir}/output.json")
EXPECTED=$(cat "./${dir}/output.json" | jq)
ACTUAL=$(cd .. && stack run -- walint --repository ./test/${dir} --config-file ./config.json --json --pretty | jq && cd test) || true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment