aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2019-10-16 22:19:48 -0400
committerBrian Behlendorf <[email protected]>2019-10-16 19:19:48 -0700
commit4313a5b4c51e2093f1b45ef9845fc77d32b09330 (patch)
treeacca9b414759ed7d2251e9a213815eb681268b08 /tests
parent08f530c6996a41c1050a11fc5b02b31a6b68fe45 (diff)
Detect if sed supports --in-place
Not all versions of sed have the --in-place flag. Detect support for the flag during ./configure and provide a fallback mechanism for those systems where sed's behavior differs. The autoconf variable ${ac_inplace} can be used to choose the correct flags for editing a file in place with sed. Replace violating usages in Makefile.am with ${ac_inplace}. Reviewed-by: Chris Dunlop <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #9463
Diffstat (limited to 'tests')
-rw-r--r--tests/test-runner/bin/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-runner/bin/Makefile.am b/tests/test-runner/bin/Makefile.am
index 2c031f745..e7838e43d 100644
--- a/tests/test-runner/bin/Makefile.am
+++ b/tests/test-runner/bin/Makefile.am
@@ -9,7 +9,7 @@ dist_pkgdata_SCRIPTS = \
#
if USING_PYTHON_2
install-data-hook:
- sed --in-place 's|^#!/usr/bin/env python3|#!/usr/bin/env python2|' \
+ sed ${ac_inplace} -e 's|^#!/usr/bin/env python3|#!/usr/bin/env python2|' \
$(DESTDIR)$(pkgdatadir)/test-runner.py \
$(DESTDIR)$(pkgdatadir)/zts-report.py
endif