Test loop: Enforce the usage of /bin/bash instead of /bin/sh for the Allrun scripts

This commit is contained in:
Martin Beaudoin 2010-10-13 19:33:40 -04:00
parent 6c89f28e58
commit db1fc7ef8f

View file

@ -44,9 +44,11 @@ ADDITIONAL_SHELL_FUNCTIONS=$2
for AR in `find ${TEST_RUN_DIR} -name Allrun`
do
# Make sure we are using /bin/bash as the activation shell
# Replace the macro runApplication with runApplicationAndReportOnError
mv ${AR} ${AR}.org
sed \
-e s/"#!\/bin\/sh"/"#!\/bin\/bash"/g \
-e s/"runApplication "/"runApplicationAndReportOnError "/g \
-e /RunFunctions/r${ADDITIONAL_SHELL_FUNCTIONS} \
${AR}.org > ${AR}