Details
-
Bug
-
Status: Closed (View Workflow)
-
Trivial
-
Resolution: Fixed
-
10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL)
-
None
-
FreeBSD 13
Description
$ perl ./mtr rpl.rpl_relay_max_extension --mem
|
 |
sed: 1: "/usr/home/ec2-user/mari ...": extra characters at the end of h command
|
mysqltest: At line 52: exec of 'sed -i "s/slave-relay-bin.000002/slave-relay-bin.999997/g" /usr/home/ec2-user/mariadb-server/mysql-test/var/mysqld.2/data//relay-log.info' failed, error: 256, status: 1, errno: 22
|
In FreeBSD, -i requires an argument, which is apparently why things go wrong.
Something like this may fix the immediate problem
sed -i='' ...
|
and Linux seems to accept it too, but I don't know how much more portable it is, and anyway it looks hack-ish. Maybe it makes more sense to get rid of inline altogether, especially since it's apparently the only test that does it.
Or disable the test for freebsd if you so prefer.