Only store relevant e2e output

This makes commits ligher/more readable when updating the output.
This commit is contained in:
Johannes 'fish' Ziemke 2017-01-06 12:36:26 +01:00
commit 2e47fcb8c5
2 changed files with 7 additions and 147 deletions

View file

@ -115,8 +115,8 @@ get() {
sleep 1
get "127.0.0.1:${port}/metrics" > "${tmpdir}/e2e-output.txt"
get "127.0.0.1:${port}/metrics" | grep -E -v "${skip_re}" > "${tmpdir}/e2e-output.txt"
diff -u \
<(grep -E -v "${skip_re}" "collector/fixtures/e2e-output.txt") \
<(grep -E -v "${skip_re}" "${tmpdir}/e2e-output.txt")
"collector/fixtures/e2e-output.txt" \
"${tmpdir}/e2e-output.txt"