Testing return values from run_tests
This commit is contained in:
parent
48e65222df
commit
9310836bbd
1 changed files with 2 additions and 1 deletions
|
@ -27,13 +27,14 @@ install_repo() {
|
|||
run_tests() {
|
||||
echo "Running tests"
|
||||
pytest 2>&1 | tee "$TEST_LOG"
|
||||
cat "$TEST_LOG"
|
||||
|
||||
grep -e '^FAILED ' "$TEST_LOG"
|
||||
if [[ $? == 0 ]]; then
|
||||
echo HERE FAIL
|
||||
return 2 # FAILURE
|
||||
fi
|
||||
|
||||
echo HERE PASS
|
||||
return 0 # PASSED
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue