You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
625 B
21 lines
625 B
#!/bin/bash |
|
|
|
################################################################################ |
|
# Set exit code depending on tool reports # |
|
################################################################################ |
|
|
|
DEFINITELY_LOST=$(cat *test-results/*summary.json | jq .num_definite_bytes_lost) |
|
|
|
cat *test-results/*summary.json |
|
|
|
echo -e "\nBytes of memory definitely lost: $DEFINITELY_LOST" |
|
|
|
if [[ "$DEFINITELY_LOST" -gt 0 ]]; then |
|
exit 1 |
|
fi |
|
|
|
EXIT_TEST_FAILED=$(cat *test-results/*summary.json | jq .exit_test_failed) |
|
|
|
if [[ "$EXIT_TEST_FAILED" -gt 0 ]]; then |
|
exit 1 |
|
fi
|
|
|