mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
test: aggregate-results.sh: count test files where all tests skipped
Previously, when all tests were skipped on a test file, there were no indication of this in the final results aggregate-results.sh printed. Now count of the files where all tests were skipped is printed.
This commit is contained in:
parent
290eccc640
commit
b6e589f54f
1 changed files with 9 additions and 1 deletions
|
@ -7,6 +7,7 @@ success=0
|
||||||
failed=0
|
failed=0
|
||||||
broken=0
|
broken=0
|
||||||
total=0
|
total=0
|
||||||
|
all_skipped=0
|
||||||
|
|
||||||
for file
|
for file
|
||||||
do
|
do
|
||||||
|
@ -22,7 +23,10 @@ do
|
||||||
broken)
|
broken)
|
||||||
broken=$((broken + value)) ;;
|
broken=$((broken + value)) ;;
|
||||||
total)
|
total)
|
||||||
total=$((total + value)) ;;
|
total=$((total + value))
|
||||||
|
if [ "$value" -eq 0 ]; then
|
||||||
|
all_skipped=$((all_skipped + 1))
|
||||||
|
fi
|
||||||
esac
|
esac
|
||||||
done <"$file"
|
done <"$file"
|
||||||
done
|
done
|
||||||
|
@ -61,6 +65,10 @@ if [ "$skipped" -ne 0 ]; then
|
||||||
pluralize_s "$skipped"
|
pluralize_s "$skipped"
|
||||||
echo "$skipped test$s skipped."
|
echo "$skipped test$s skipped."
|
||||||
fi
|
fi
|
||||||
|
if [ "$all_skipped" -ne 0 ]; then
|
||||||
|
pluralize_s "$all_skipped"
|
||||||
|
echo "All tests in $all_skipped file$s skipped."
|
||||||
|
fi
|
||||||
|
|
||||||
# Note that we currently do not consider skipped tests as failing the
|
# Note that we currently do not consider skipped tests as failing the
|
||||||
# build.
|
# build.
|
||||||
|
|
Loading…
Reference in a new issue