File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5151
5252 - name : Scraping Test
5353 if : runner.os == 'macOS'
54- run : bazel test ${{ matrix.bazel_args }} --test_output=all //pull/tests/integration:scrape-test
54+ run : bazel test ${{ matrix.bazel_args }} --test_output=all --test_env=TELEGRAF="$(brew --prefix telegraf)/bin/telegraf" //pull/tests/integration:scrape-test
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- telegraf=$( which telegraf)
4- if [ ! -x " $telegraf " ] ; then
3+ : " ${TELEGRAF:= $(which telegraf)} "
4+
5+ if [ ! -x " $TELEGRAF " ] ; then
56 echo " telegraf must be in path for this test to run"
67 exit 1
78fi
@@ -16,4 +17,4 @@ trap 'kill $(jobs -p)' EXIT
1617timeout_after 10
1718
1819pull/tests/integration/sample-server &
19- telegraf --config pull/tests/integration/scrape.conf --quiet | grep -m1 http_requests_total
20+ " $TELEGRAF " --config pull/tests/integration/scrape.conf --quiet | grep -m1 http_requests_total
You can’t perform that action at this time.
0 commit comments