We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0906af9 commit 4f56ce7Copy full SHA for 4f56ce7
1 file changed
tests/sparql_qc/run_sparql_metatest.sh
@@ -44,7 +44,9 @@ for q in "${queries[@]}"; do
44
name="$(basename "$q")"
45
res="$OUT/$name.tsv"
46
robot query --input "$FIXTURE" --query "$q" "$res"
47
- rows=$(($(wc -l < "$res") - 1)) # the first line is the SELECT header
+ raw_rows=$(wc -l < "$res")
48
+ rows=$((raw_rows - 1)) # first line is SELECT header when present
49
+ if [ "$rows" -lt 0 ]; then rows=0; fi
50
if [ "$rows" -ge 1 ]; then
51
echo "OK $name matched $rows fixture violation(s)"
52
else
0 commit comments