summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnel Husakovic <anel@mariadb.org>2021-09-03 21:15:54 +0200
committerAnel Husakovic <anel@mariadb.org>2022-01-20 12:04:41 +0100
commit9641de47126e1d234e0fbbd35b17ffec2f9fa3c4 (patch)
tree2851d0cb7678d031b06c7dd4b02079b2ddfb521d
parent5e6fd4e80435ae6d5994abbff6032c7957713410 (diff)
downloadmariadb-git-bb-10.7-anel-MDEV-26531-mtr-hunks.tar.gz
MDEV-26531: mtr shows some hunks failedbb-10.7-anel-MDEV-26531-mtr-hunks
Reviewed by: wlad@mariadb.com
-rwxr-xr-xmysql-test/mariadb-test-run.pl10
1 files changed, 7 insertions, 3 deletions
diff --git a/mysql-test/mariadb-test-run.pl b/mysql-test/mariadb-test-run.pl
index bf2d6e9be00..da93998aa3b 100755
--- a/mysql-test/mariadb-test-run.pl
+++ b/mysql-test/mariadb-test-run.pl
@@ -3279,11 +3279,15 @@ sub do_before_run_mysqltest($)
# don't rebuild a file if it's up to date
unless (-e $dest and -M $dest < -M $resfile
and -M $dest < -M $base_result) {
- run_system(@cmd);
+ if(run_system(@cmd) != 0){
+ die("system(@cmd) : $?");
+ }
}
} else {
$cmd[-3] = $dest = $opt_tmpdir . '/' . basename($dest);
- run_system(@cmd);
+ if(run_system(@cmd) != 0){
+ die("system(@cmd) : $?");
+ }
}
$tinfo->{result_file} = $dest;
}
@@ -4888,7 +4892,7 @@ sub report_failure_and_restart ($) {
sub run_system(@) {
mtr_verbose("Running '$_[0]'");
- my $ret= system(@_) >> 8;
+ my $ret= system(@_);
return $ret;
}