File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ jobs:
271271 echo "::endgroup::"
272272
273273 test_macos :
274- name : Run end-to-end tests on macOS
274+ name : Run end-to-end tests on Darwin/MacOS
275275 runs-on : macos-latest
276276 steps :
277277 - name : Checkout the repository
@@ -308,5 +308,5 @@ jobs:
308308
309309 echo "::group::Run End-to-End Tests"
310310 git config --global --add safe.directory $(pwd)
311- make test-e2e
311+ make test-e2e E2E_EXTRA_FLAGS='--collector.diskstats.device-include=disk[04]'
312312 echo "::endgroup::"
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ include Makefile.common
2222PROMTOOL_VERSION ?= 2.30.0
2323PROMTOOL_URL ?= https://github.com/prometheus/prometheus/releases/download/v$(PROMTOOL_VERSION ) /prometheus-$(PROMTOOL_VERSION ) .$(GO_BUILD_PLATFORM ) .tar.gz
2424PROMTOOL ?= $(FIRST_GOPATH ) /bin/promtool
25+ E2E_EXTRA_FLAGS ?=
2526
2627DOCKER_IMAGE_NAME ?= node-exporter
2728MACH ?= $(shell uname -m)
@@ -121,7 +122,7 @@ tools:
121122.PHONY : test-e2e
122123test-e2e : build collector/fixtures/sys/.unpacked collector/fixtures/udev/.unpacked tools
123124 @echo " >> running end-to-end tests"
124- ./end-to-end-test.sh
125+ ./end-to-end-test.sh -e " $( E2E_EXTRA_FLAGS ) "
125126
126127.PHONY : skip-test-e2e
127128skip-test-e2e :
Original file line number Diff line number Diff line change @@ -127,10 +127,13 @@ case "${arch}" in
127127 ;;
128128esac
129129
130- keep=0; update=0; verbose=0
131- while getopts ' hkuv' opt
130+ extra_flags= " " ; keep=0; update=0; verbose=0
131+ while getopts ' e: hkuv' opt
132132do
133133 case " $opt " in
134+ e)
135+ extra_flags=" ${OPTARG} "
136+ ;;
134137 k)
135138 keep=1
136139 ;;
158161fi
159162
160163collector_flags=$( cat << FLAGS
164+ ${extra_flags}
161165 ${cpu_info_collector}
162166 --collector.arp.device-exclude=nope
163167 --collector.bcache.priorityStats
You can’t perform that action at this time.
0 commit comments