diff options
author | Daniel Black <daniel@linux.ibm.com> | 2020-03-31 11:39:36 +1100 |
---|---|---|
committer | Anel Husakovic <anel@mariadb.org> | 2020-04-02 06:57:37 +0200 |
commit | 985eae8368bd87066982771ed38daece9c7b76c4 (patch) | |
tree | 6bb32d7d73294c394bd70548413781d1b89139aa | |
parent | d4cc88f168a9b41b3255dd1f3ee8a5d081703302 (diff) | |
download | mariadb-git-bb-5.5-anel-PR1487-8.tar.gz |
mtr: FreeBSD's patch has no --binarybb-5.5-anel-PR1487-8
This is true in FreeBSD-12.0
$ patch --version
patch 2.0-12u11 FreeBSD
$ patch --binary
patch: unrecognized option `--binary'
PR 1488
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index fe2aa204b36..20a8044ac74 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -3719,8 +3719,11 @@ sub do_before_run_mysqltest($) # to be able to distinguish them from manually created # version-controlled results, and to ignore them in bzr. my $dest = "$base_file$suites.result~"; - my @cmd = ($exe_patch, qw/--binary -r - -f -s -o/, - $dest, $base_result, $resfile); + my @cmd = ($exe_patch); + if ($^O ne "freebsd") { + push @cmd, '--binary'; + } + push @cmd, (qw/-r - -f -s -o/, $dest, $base_result, $resfile); if (-w $resdir) { # don't rebuild a file if it's up to date unless (-e $dest and -M $dest < -M $resfile |