Skip to content

Commit be097b1

Browse files
committed
runtest: proper regex replace excluding .ncml and TEST_USE_PROD_DATA
Fix the previous commit not working as intended.
1 parent 0015436 commit be097b1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

runtest

+5-4
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ fi
1616

1717
if [ ! -z "$PAVICS_HOST" ]; then
1818
echo "Will run notebooks against $PAVICS_HOST"
19-
# .ncml links will always comes from the production server, not the server
19+
# * .ncml links will always comes from the production server, not the server
2020
# under test since we do not perform regex replace for .ncml links.
21-
# Any lines marked with TEST_USE_PROD_DATA will replace pavics to boreas to
22-
# use data from prod and avoid having to replicate data to test servers.
23-
sed -i "/\.ncml|TEST_USE_PROD_DATA/!s/pavics.ouranos.ca/$PAVICS_HOST/g" $NOTEBOOKS
21+
#
22+
# * Any lines marked with TEST_USE_PROD_DATA will also use data from prod
23+
# and avoid having to replicate data to test servers.
24+
sed -i "/\(\.ncml\|TEST_USE_PROD_DATA\)/!s/pavics.ouranos.ca/$PAVICS_HOST/g" $NOTEBOOKS
2425
git diff # not working for notebooks from other repos
2526
fi
2627

0 commit comments

Comments
 (0)