| 1234567891011121314151617181920212223242526272829 | #!/usr/bin/env bashtelegraf=$(which telegraf)if [ ! -x "$telegraf" ] ; then    echo "telegraf must be in path for this test to run"    exit 1fipull/tests/integration/sample-server&sample_server_pid=$!sleep 1telegraf_output="$(telegraf -test -config pull/tests/integration/scrape.conf)"telegraf_run_result=$?kill -9 $sample_server_pidif [ $telegraf_run_result -ne 0 ] ; then    exit $telegraf_run_resultfiif [[ ! $telegraf_output == *"time_running_seconds"* ]] ; then   echo "Could not find time_running_seconds in exposed metrics:"   echo "${telegraf_run_output}"   exit 1fiecho "Success:"echo "${telegraf_output}"exit 0
 |