Skip to content

Commit

Permalink
TritonDataCenter#89 tests/runtests runner does not count failed and s…
Browse files Browse the repository at this point in the history
…kipped tests
  • Loading branch information
Marsell Kukuljevic committed May 22, 2021
1 parent 64e367e commit 9cfe58f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ end_time=$(date +%s)
elapsed=$((${end_time} - ${start_time}))

tests=$(grep "^1\.\.[0-9]" ${OUTPUT_DIR}/cloudapi.tap | cut -d '.' -f3 | xargs | tr ' ' '+' | bc)
failed=$(grep "^# failed [0-9]" ${OUTPUT_DIR}/cloudapi.tap | cut -d ' ' -f3 | xargs | tr ' ' '+' | bc)
skipped=$(grep "^# skip: [0-9]" ${OUTPUT_DIR}/cloudapi.tap | cut -d ' ' -f3 | xargs | tr ' ' '+' | bc)
failed=$(grep "^# fail [0-9]" ${OUTPUT_DIR}/cloudapi.tap | cut -d ' ' -f4 | xargs | tr ' ' '+' | bc)
skipped=$(grep "^# skip [0-9]" ${OUTPUT_DIR}/cloudapi.tap | cut -d ' ' -f4 | xargs | tr ' ' '+' | bc)

[[ -z ${tests} ]] && tests=0
[[ -z ${failed} ]] && failed=0
Expand Down

0 comments on commit 9cfe58f

Please sign in to comment.