From 45c0d38ce0d1d3c40c06459fb30237dfe4c58682 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Thu, 14 Jan 2016 10:51:11 +0100 Subject: [PATCH] Re-arrange collectors list in end-to-end test Reduce merge conflicts by breaking up the list into a multi-line string. --- end-to-end-test.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/end-to-end-test.sh b/end-to-end-test.sh index 720772ee..0f3b822c 100755 --- a/end-to-end-test.sh +++ b/end-to-end-test.sh @@ -2,6 +2,24 @@ set -euf -o pipefail +collectors=$(cat << COLLECTORS + conntrack + diskstats + entropy + filefd + loadavg + mdadm + meminfo + netdev + netstat + sockstat + stat + textfile + bonding + megacli +COLLECTORS +) + cd "$(dirname $0)" port="$((10000 + (RANDOM % 10000)))" @@ -42,7 +60,7 @@ fi ./node_exporter \ -collector.procfs="collector/fixtures/proc" \ -collector.sysfs="collector/fixtures/sys" \ - -collectors.enabled="conntrack,diskstats,entropy,filefd,loadavg,mdadm,meminfo,netdev,netstat,sockstat,stat,textfile,bonding,megacli" \ + -collectors.enabled="$(echo ${collectors} | tr ' ' ',')" \ -collector.textfile.directory="collector/fixtures/textfile/two_metric_files/" \ -collector.megacli.command="collector/fixtures/megacli" \ -web.listen-address "127.0.0.1:${port}" \