tests: replace non-portable use of sed by $PERL

This fixes one failure reported in #428 by Étienne Renault.

* tests/core/lbt.test: Here.
* tests/run.in: Export PERL.
This commit is contained in:
Alexandre Duret-Lutz 2020-09-23 11:01:05 +02:00
parent 133896d584
commit 3a6d967872
2 changed files with 6 additions and 3 deletions

View file

@ -61,6 +61,9 @@ export top_builddir
top_srcdir='@abs_top_srcdir@'
export top_srcdir
PERL='@PERL@'
export PERL
# Reset those variables, as they may affect the output of DOT.
SPOT_DOTEXTRA=
export SPOT_DOTEXTRA
@ -108,7 +111,7 @@ case $1 in
*.test)
exec sh -x "$@";;
*.pl)
exec @PERL@ "$@";;
exec $PERL "$@";;
*python*|*jupyter*)
PYTHONPATH=$pypath DYLD_LIBRARY_PATH=$modpath \
exec $PREFIXCMD "$@";;