Skip to content

Commit 17b1725

Browse files
committed
Using environment variable to store the email address for sending notifications.
Email should be declared in env_vars.sh .
1 parent 84ebbc9 commit 17b1725

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/seleniumbender

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if [ "${common}" -eq 1 ]; then
6767
tox tests/common -- --url=${URL} --source=${SOURCE} --plugin
6868
RETVAL=$?
6969
if [ "${RETVAL}" -eq 1 ]; then
70-
mail -s "Selenium Tests: ${IDENTIFIER} Failed To Run" [email protected] <<< 'Something went wrong with common tests. Please check the logs.'
70+
mail -s "Selenium Tests: ${IDENTIFIER} Failed To Run" ${EMAIL} <<< 'Something went wrong with common tests. Please check the logs.'
7171
fi
7272
exit ${RETVAL}
7373
elif [ "${examples}" -eq 1 ]; then
@@ -88,7 +88,7 @@ elif [ "${noplugin}" -eq 1 ]; then
8888
tox tests/noplugin -- --url=${URL} --source=${SOURCE}
8989
RETVAL=$?
9090
if [ "${RETVAL}" -eq 1 ]; then
91-
mail -s "Selenium Tests: ${IDENTIFIER} Failed To Run" [email protected] <<< 'Something went wrong with noplugin tests. Please check the logs.'
91+
mail -s "Selenium Tests: ${IDENTIFIER} Failed To Run" ${EMAIL} <<< 'Something went wrong with noplugin tests. Please check the logs.'
9292
fi
9393
exit ${RETVAL}
9494
elif [ "${walkthrough}" -eq 1 ]; then
@@ -115,7 +115,7 @@ elif [ "${walkthrough}" -eq 1 ]; then
115115
fi
116116
done
117117
if [ "${RETVAL}" -ne 0 ]; then
118-
mail -s "Selenium Tests: ${IDENTIFIER} Failed To Run" [email protected] <<< 'Something went wrong with noplugin tests. Please check the logs.'
118+
mail -s "Selenium Tests: ${IDENTIFIER} Failed To Run" ${EMAIL} <<< 'Something went wrong with noplugin tests. Please check the logs.'
119119
fi
120120
exit ${RETVAL}
121121
fi
@@ -130,4 +130,4 @@ diffnum=$(ls -t ${REPORTS} | egrep "${DATE}.*${IDENTIFIER}" | head -1 | cut -d'_
130130
changes=${diffnum:0:1}
131131

132132
(echo "Changes since the last time: ${changes}"; uuencode "${LOGS}/${LOGFILE}" "${LOGFILE}"; uuencode "${REPORTS}/${REPORTFILE}" "${REPORTFILE}") \
133-
| mail -s "Selenium Tests Report: ${IDENTIFIER} ${email_date} Changes: ${changes}" [email protected]
133+
| mail -s "Selenium Tests Report: ${IDENTIFIER} ${email_date} Changes: ${changes}" ${EMAIL}

0 commit comments

Comments
 (0)