forked from ondra/server-sdk
added option to open html in google chrome ( on macOS only )
This commit is contained in:
parent
fcf48c4442
commit
8246ab110d
@ -3,7 +3,7 @@
|
||||
# @see https://intoli.com/blog/exit-on-errors-in-bash-scripts/
|
||||
set -e
|
||||
|
||||
trap 'LASTRES=$?; LAST=$BASH_COMMAND; if [[ LASTRES -ne 0 ]]; then fail "Command: \"$LAST\" exited with exit code: $LASTRES"; elif [ $FAIL == 1 ]; then fail finished with error; exit 1; else pass "finished all";fi' EXIT
|
||||
trap 'LASTRES=$?; LAST=$BASH_COMMAND; if [[ LASTRES -ne 0 ]]; then fail "Command: \"$LAST\" exited with exit code: $LASTRES"; else pass "finished";fi' EXIT
|
||||
|
||||
SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
DIRNAME="${SRCDIR##*/}"
|
||||
@ -17,7 +17,7 @@ COVERAGE_FILTER="*Qt*.framework* *Xcode.app* *.moc *moc_*.cpp */test/* *qrc_* ui
|
||||
|
||||
main() {
|
||||
setup
|
||||
testcc
|
||||
testcc "$@"
|
||||
}
|
||||
|
||||
function setup() {
|
||||
@ -97,8 +97,10 @@ function testcc() {
|
||||
|
||||
info "Reseting coverage counts"
|
||||
"${LCOV}" -d "${COVERAGE_DIR}" -z
|
||||
|
||||
open "${HTML_RESULTS_DIR}/index.html" &
|
||||
|
||||
if [ "$1" == "open" ]; then
|
||||
open "${HTML_RESULTS_DIR}/index.html" &
|
||||
fi
|
||||
}
|
||||
|
||||
# ################
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user