mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-21 13:57:49 +00:00
16 lines
491 B
Bash
16 lines
491 B
Bash
|
#!/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
|