diff options
| author | Anel Husakovic <anel@mariadb.org> | 2021-09-03 21:15:54 +0200 |
|---|---|---|
| committer | Anel Husakovic <anel@mariadb.org> | 2022-01-20 12:04:41 +0100 |
| commit | 9641de47126e1d234e0fbbd35b17ffec2f9fa3c4 (patch) | |
| tree | 2851d0cb7678d031b06c7dd4b02079b2ddfb521d | |
| parent | 5e6fd4e80435ae6d5994abbff6032c7957713410 (diff) | |
| download | mariadb-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-x | mysql-test/mariadb-test-run.pl | 10 |
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; } |
