Using grep -E on all platforms

This commit is contained in:
BenTalagan
2019-11-20 21:15:57 +00:00
committed by Reece H. Dunn
parent 050d5e4982
commit c7827df43b
+1 -1
View File
@@ -7,7 +7,7 @@ test_replace() {
echo "testing ${TEST_LANG}" echo "testing ${TEST_LANG}"
ESPEAK_DATA_PATH=`pwd` LD_LIBRARY_PATH=src:${LD_LIBRARY_PATH} \ ESPEAK_DATA_PATH=`pwd` LD_LIBRARY_PATH=src:${LD_LIBRARY_PATH} \
src/espeak-ng -Xq -v ${TEST_LANG} "${TEST_TEXT}" | grep -P "(Translate|Found:) " | sed -e 's/ \[.*][ ]*$//g' > actual.txt src/espeak-ng -Xq -v ${TEST_LANG} "${TEST_TEXT}" | grep -E "(Translate|Found:) " | sed -e 's/ \[.*][ ]*$//g' > actual.txt
if [ x$TEST_BROKEN = xbroken ] ; then if [ x$TEST_BROKEN = xbroken ] ; then
diff expected.txt actual.txt || (echo "... ignoring error (broken)" && true) diff expected.txt actual.txt || (echo "... ignoring error (broken)" && true)
else else