utils.sh 331 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
}
13
14
15
16
17
18

function local_author {
    # Run in git repository to set commit author
    git config user.email "my@noble.self"
    git config user.name "Noble Self"
}