mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Detect unexpected return codes of mysqltest in mysql-test-run.
This way, a crash of mysqltest will be visible in the test logs (output of mysql-test-run).
This commit is contained in:
@ -603,7 +603,7 @@ error () {
|
|||||||
error_is () {
|
error_is () {
|
||||||
$ECHO "Errors are (from $TIMEFILE) :"
|
$ECHO "Errors are (from $TIMEFILE) :"
|
||||||
$CAT < $TIMEFILE
|
$CAT < $TIMEFILE
|
||||||
$ECHO "(the last line(s) may be the ones that caused the die() in mysqltest)"
|
$ECHO "(the last lines may be the most important ones)"
|
||||||
}
|
}
|
||||||
|
|
||||||
prefix_to_8() {
|
prefix_to_8() {
|
||||||
@ -1309,6 +1309,9 @@ run_testcase ()
|
|||||||
skip_inc
|
skip_inc
|
||||||
$ECHO "$RES$RES_SPACE [ skipped ]"
|
$ECHO "$RES$RES_SPACE [ skipped ]"
|
||||||
else
|
else
|
||||||
|
if [ $res -gt 2 ]; then
|
||||||
|
$ECHO "mysqltest returned unexpected code $res, it has probably crashed" >> $TIMEFILE
|
||||||
|
fi
|
||||||
total_inc
|
total_inc
|
||||||
fail_inc
|
fail_inc
|
||||||
$ECHO "$RES$RES_SPACE [ fail ]"
|
$ECHO "$RES$RES_SPACE [ fail ]"
|
||||||
|
Reference in New Issue
Block a user