diff options
author | Johannes 'fish' Ziemke <github@freigeist.org> | 2017-01-06 12:36:26 +0100 |
---|---|---|
committer | Johannes 'fish' Ziemke <github@freigeist.org> | 2017-01-06 12:36:26 +0100 |
commit | 2e47fcb8c556a0b135004f69e2225f5e05c19e56 (patch) | |
tree | 20a34b30d78ece401cb6ce93248473a46a42525b /end-to-end-test.sh | |
parent | 17e71b0a16b1cf9cc406129a8adc95e6cb704250 (diff) | |
download | prometheus_node_collector-2e47fcb8c556a0b135004f69e2225f5e05c19e56.tar.bz2 prometheus_node_collector-2e47fcb8c556a0b135004f69e2225f5e05c19e56.tar.xz prometheus_node_collector-2e47fcb8c556a0b135004f69e2225f5e05c19e56.zip |
Only store relevant e2e output
This makes commits ligher/more readable when updating the output.
Diffstat (limited to 'end-to-end-test.sh')
-rwxr-xr-x | end-to-end-test.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/end-to-end-test.sh b/end-to-end-test.sh index 37e72b8..5c17e75 100755 --- a/end-to-end-test.sh +++ b/end-to-end-test.sh | |||
@@ -115,8 +115,8 @@ get() { | |||
115 | 115 | ||
116 | sleep 1 | 116 | sleep 1 |
117 | 117 | ||
118 | get "127.0.0.1:${port}/metrics" > "${tmpdir}/e2e-output.txt" | 118 | get "127.0.0.1:${port}/metrics" | grep -E -v "${skip_re}" > "${tmpdir}/e2e-output.txt" |
119 | 119 | ||
120 | diff -u \ | 120 | diff -u \ |
121 | <(grep -E -v "${skip_re}" "collector/fixtures/e2e-output.txt") \ | 121 | "collector/fixtures/e2e-output.txt" \ |
122 | <(grep -E -v "${skip_re}" "${tmpdir}/e2e-output.txt") | 122 | "${tmpdir}/e2e-output.txt" |