summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <daniel@linux.ibm.com>2020-03-31 11:39:36 +1100
committerAnel Husakovic <anel@mariadb.org>2020-04-02 06:57:37 +0200
commit985eae8368bd87066982771ed38daece9c7b76c4 (patch)
tree6bb32d7d73294c394bd70548413781d1b89139aa
parentd4cc88f168a9b41b3255dd1f3ee8a5d081703302 (diff)
downloadmariadb-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-xmysql-test/mysql-test-run.pl7
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