utils.sh 175 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
# Test utilities
RET=${RET:-0}

function ingest {
    local msg="${1:-"no message"}"
    echo "Test failed: $msg"
    RET=1
}

function barf {
    [ "$RET" == 0 ] || exit 1
}