159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
17 lines
458 B
Bash
17 lines
458 B
Bash
# Setup hook for unittest.
|
|
echo "Sourcing unittest-check-hook"
|
|
|
|
unittestCheckPhase() {
|
|
echo "Executing unittestCheckPhase"
|
|
runHook preCheck
|
|
|
|
eval "@pythonCheckInterpreter@ -m unittest discover $unittestFlagsArray"
|
|
|
|
runHook postCheck
|
|
echo "Finished executing unittestCheckPhase"
|
|
}
|
|
|
|
if [ -z "${dontUseUnittestCheck-}" ] && [ -z "${installCheckPhase-}" ]; then
|
|
echo "Using unittestCheckPhase"
|
|
preDistPhases+=" unittestCheckPhase"
|
|
fi
|