diff --git a/.gitignore b/.gitignore index c116aa2..3ef96cc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ dist node_modules *.received.* +*.log diff --git a/test/check-metadata.sh b/test/check-metadata.sh index 6b4ddc2..dba8924 100755 --- a/test/check-metadata.sh +++ b/test/check-metadata.sh @@ -44,7 +44,7 @@ for file in "$SCRIPT_PATH"/"$profile"/valid*.ttl; do name=$(basename "$file") { - npx barnard59 cube check-metadata --profile "$profilePath" > /dev/null 2>&1 + npx barnard59 cube check-metadata --profile "$profilePath" > /dev/null 2>"$file.log" success=$? } < "$file" @@ -64,7 +64,7 @@ for file in "$SCRIPT_PATH"/"$profile"/invalid*.ttl; do fi name=$(basename "$file") - report=$(npx barnard59 cube check-metadata --profile "$profilePath" < "$file" 2> /dev/null | "$SCRIPT_PATH"/pretty-print.mjs) + report=$(npx barnard59 cube check-metadata --profile "$profilePath" < "$file" 2> "$file.log" | "$SCRIPT_PATH"/pretty-print.mjs) if ! echo "$report" | approvals "$name" --outdir "$SCRIPT_PATH"/"$profile" "$approvalsFlags" > /dev/null 2>&1 ; then "$SCRIPT_PATH"/report-failure.sh "$file" "$(cat "$profilePath")" "$(cat "$file")" "check results" diff --git a/test/check-observations.sh b/test/check-observations.sh index f403f05..40fc21e 100755 --- a/test/check-observations.sh +++ b/test/check-observations.sh @@ -31,7 +31,7 @@ for file in "$SCRIPT_PATH"/observations/*.ttl; do fi name=$(basename "$file") - report=$(npx barnard59 cube check-observations --constraint "$file" < "$file" 2> /dev/null | "$SCRIPT_PATH"/pretty-print.mjs) + report=$(npx barnard59 cube check-observations --constraint "$file" < "$file" 2> "$file.log" | "$SCRIPT_PATH"/pretty-print.mjs) if ! echo "$report" | approvals "$name" --outdir "$SCRIPT_PATH"/observations "$approvalsFlags" > /dev/null 2>&1 ; then "$SCRIPT_PATH"/report-failure.sh "$file" "$(cat "$file")" "$(cat "$file")" "check results"