summaryrefslogtreecommitdiff
path: root/test/integration/targets/result_pickle_error/runme.sh
blob: e2ec37b8956cbc9cbca89a076069973a90093fc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

set -ux
export ANSIBLE_ROLES_PATH=../

is_timeout() {
    rv=$?
    if [ "$rv" == "124" ]; then
        echo "***hang detected, this likely means the strategy never received a result for the task***"
    fi
    exit $rv
}

trap "is_timeout" EXIT

../test_utils/scripts/timeout.py -- 10 ansible-playbook -i ../../inventory runme.yml -v "$@"