Some checks failed
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Failing after 29s
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Failing after 16s
sm-rpc / build (Debug, host.gcc) (push) Failing after 11s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Failing after 12s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Failing after 11s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Failing after 11s
sm-rpc / build (Release, host.gcc) (push) Failing after 12s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Failing after 16s
20 lines
433 B
Bash
Executable File
20 lines
433 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
telegraf=$(which telegraf)
|
|
if [ ! -x "$telegraf" ] ; then
|
|
echo "telegraf must be in path for this test to run"
|
|
exit 1
|
|
fi
|
|
|
|
function timeout_after
|
|
{
|
|
( echo failing after $1 seconds for execution && sleep $1 && kill $$ ) &
|
|
}
|
|
|
|
trap 'kill $(jobs -p)' EXIT
|
|
|
|
timeout_after 10
|
|
|
|
pull/tests/integration/sample-server &
|
|
telegraf --config pull/tests/integration/scrape.conf --quiet | grep -m1 http_requests_total
|