ae2dc6aea6
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
17 lines
466 B
Bash
17 lines
466 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"
|
|
appendToVar preDistPhases unittestCheckPhase
|
|
fi
|