fix: tests: use a portable invocation of 'sed -i'
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 23 Oct 2023 20:16:34 +0000 (16:16 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 24 Oct 2023 20:06:47 +0000 (16:06 -0400)
commit717a01a712b427130c6ebb23940e65addb6ed65a
tree5c358b129d518798b43d9b0dc4fe871389af57d2
parent2d12ade973ad338be4e3a4f2fb82c6798a2cec33
fix: tests: use a portable invocation of 'sed -i'

The GNU and BSD sed implementations slightly differ in the handling of
an argument to the '-i' switch to use as a suffix to a backup file. BSD
sed requires an argument while it's optional for GNU sed, if present it
must be placed directly after the switch with no space.

To make both implementations work properly and not create a backup file,
a zero length argument must be placed directly after the switch with no
space.

Change-Id: Ifd2cd5b27df05e3301e527ef1d8e718b434d2236
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11132
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
tests/utils/utils.sh
This page took 0.024343 seconds and 4 git commands to generate.