diff options
author | Ed Maste <emaste@freebsd.org> | 2019-11-14 20:36:15 +0000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-11-15 20:08:25 +1100 |
commit | dbe80d577ee2670a132ab5b7458bf4d3ca94c4f4 (patch) | |
tree | 5067b294191afb42a0ab765feb3845e0888b3df5 | |
parent | af57d440d887c03d305cc6b18d53daf06766cd5b (diff) | |
download | dtc-dbe80d577ee2670a132ab5b7458bf4d3ca94c4f4.zip dtc-dbe80d577ee2670a132ab5b7458bf4d3ca94c4f4.tar.gz dtc-dbe80d577ee2670a132ab5b7458bf4d3ca94c4f4.tar.bz2 |
tests: add extension to sed -i for GNU/BSD sed compatibility
BSD sed requires that an extension is provided to the -i (in-place edit)
flag, which may immediately follow the -i or may be separated by a space -
sed -i .bak and sed -i.bak are equivalent. The extension is optional with
GNU sed, but if provided must immediately follow the -i. Thus, sed -i.bak
behaves identically with both GNU and BSD sed.
Signed-off-by: Ed Maste <emaste@freebsd.org>
Message-Id: <20191114203615.2866-1-emaste@freefall.freebsd.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rwxr-xr-x | tests/run_tests.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 081f1ee..a0a5245 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -730,7 +730,7 @@ dtc_tests () { # Dependencies run_dtc_test -I dts -O dtb -o dependencies.test.dtb -d dependencies.test.d "$SRCDIR/dependencies.dts" - sed -i "s,$SRCDIR/,,g" dependencies.test.d + sed -i.bak "s,$SRCDIR/,,g" dependencies.test.d run_wrap_test cmp dependencies.test.d "$SRCDIR/dependencies.cmp" # Search paths |