tests: fix non-portable use of sed
Fixes #428, reported by Etienne Renault. * tests/core/genltl.test: Do use \? with sed.
This commit is contained in:
parent
b0730852bf
commit
b43f378db5
1 changed files with 4 additions and 2 deletions
|
|
@ -24,8 +24,10 @@ set -e
|
||||||
# Make sure the name of each pattern is correctly output by %F.
|
# Make sure the name of each pattern is correctly output by %F.
|
||||||
opts=`genltl --help | sed -n '/=RANGE/{
|
opts=`genltl --help | sed -n '/=RANGE/{
|
||||||
s/^ *//
|
s/^ *//
|
||||||
s/=RANGE\[\?,RANGE.*/=1,1/p
|
s/=RANGE\[,RANGE.*/=1,1/p
|
||||||
s/\[\?=RANGE.*/=1/p
|
s/=RANGE,RANGE.*/=1,1/p
|
||||||
|
s/\[=RANGE.*/=1/p
|
||||||
|
s/=RANGE.*/=1/p
|
||||||
}'`
|
}'`
|
||||||
res=`genltl $opts --format="--%F=%L"`
|
res=`genltl $opts --format="--%F=%L"`
|
||||||
test "$opts" = "$res"
|
test "$opts" = "$res"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue