summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKai Engert <kaie@kuix.de>2016-08-05 16:09:16 +0200
committerKai Engert <kaie@kuix.de>2016-08-05 16:09:16 +0200
commit49728d4fd408851ca2345f7f9b0089888f132d0d (patch)
tree254845df47b41eed8261b3a1d1bf7ac0ba7d91db /tests
parentbcc48afc3a803d6c3443e6434a3257905a776645 (diff)
downloadnss-hg-49728d4fd408851ca2345f7f9b0089888f132d0d.tar.gz
Bug 1291888, buildbot progress lines, patch v4, r=bustage (no details with test results)
Diffstat (limited to 'tests')
-rw-r--r--tests/common/init.sh30
1 files changed, 17 insertions, 13 deletions
diff --git a/tests/common/init.sh b/tests/common/init.sh
index 934133f40..473560e25 100644
--- a/tests/common/init.sh
+++ b/tests/common/init.sh
@@ -178,52 +178,56 @@ if [ -z "${INIT_SOURCED}" -o "${INIT_SOURCED}" != "TRUE" ]; then
{ # 3 functions so we can put targets in the output.log easier
echo $* >>${RESULTS}
}
- html_passed_ignore_core()
+ increase_msg_id()
{
MSG_ID=`cat ${MSG_ID_FILE}`
MSG_ID=`expr ${MSG_ID} + 1`
echo ${MSG_ID} > ${MSG_ID_FILE}
+ }
+ html_passed_ignore_core()
+ {
+ increase_msg_id
html "<TR><TD>#${MSG_ID}: $1 ${HTML_PASSED}"
echo "${SCRIPTNAME}: #${MSG_ID}: $* - PASSED"
}
html_passed()
{
html_detect_core "$@" || return
- html_passed_ignore_core
+ increase_msg_id
+ html "<TR><TD>#${MSG_ID}: $1 ${HTML_PASSED}"
+ echo "${SCRIPTNAME}: #${MSG_ID}: $* - PASSED"
}
html_failed_ignore_core()
{
- MSG_ID=`cat ${MSG_ID_FILE}`
- MSG_ID=`expr ${MSG_ID} + 1`
- echo ${MSG_ID} > ${MSG_ID_FILE}
+ increase_msg_id
html "<TR><TD>#${MSG_ID}: $1 ${HTML_FAILED}"
echo "${SCRIPTNAME}: #${MSG_ID}: $* - FAILED"
}
html_failed()
{
html_detect_core "$@" || return
- html_failed_ignore_core
+ increase_msg_id
+ html "<TR><TD>#${MSG_ID}: $1 ${HTML_FAILED}"
+ echo "${SCRIPTNAME}: #${MSG_ID}: $* - FAILED"
}
html_unknown_ignore_core()
{
- MSG_ID=`cat ${MSG_ID_FILE}`
- MSG_ID=`expr ${MSG_ID} + 1`
- echo ${MSG_ID} > ${MSG_ID_FILE}
+ increase_msg_id
html "<TR><TD>#${MSG_ID}: $1 ${HTML_UNKNOWN}"
echo "${SCRIPTNAME}: #${MSG_ID}: $* - UNKNOWN"
}
html_unknown()
{
html_detect_core "$@" || return
- html_unknown_ignore_core
+ increase_msg_id
+ html "<TR><TD>#${MSG_ID}: $1 ${HTML_UNKNOWN}"
+ echo "${SCRIPTNAME}: #${MSG_ID}: $* - UNKNOWN"
}
html_detect_core()
{
detect_core
if [ $? -ne 0 ]; then
- MSG_ID=`cat ${MSG_ID_FILE}`
- MSG_ID=`expr ${MSG_ID} + 1`
- echo ${MSG_ID} > ${MSG_ID_FILE}
+ increase_msg_id
html "<TR><TD>#${MSG_ID}: $* ${HTML_FAILED_CORE}"
echo "${SCRIPTNAME}: #${MSG_ID}: $* - Core file is detected - FAILED"
return 1