Permalink
Browse files

TS-2290 Make the logstats checks resilient to warnings on missing xid…

… tag
  • Loading branch information...
1 parent 8e72c80 commit bd070c69346fbeeda1e6ec906c267ca468f5d0e5 @zwoop zwoop committed Feb 7, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 proxy/tests/test_logstats_json
  2. +1 −1 proxy/tests/test_logstats_summary
@@ -23,6 +23,6 @@ tmpfile=$(mktemp "$TMPDIR/logstats.XXXXXX")
srcdir=$(cd $srcdir && pwd)
# Note that the JSON has a timestamp in it that we have to filter out ...
-./traffic_logstats --log_file "$srcdir/tests/logstats.blog" --json | grep -v timestamp > "$tmpfile"
+./traffic_logstats --log_file "$srcdir/tests/logstats.blog" --json | fgrep -v 'timestamp' | fgrep -v 'symbol xid' > "$tmpfile"
diff "$tmpfile" "$srcdir/tests/logstats.json"
rm -f -- "$tmpfile"
@@ -24,6 +24,6 @@ tmpfile=$(mktemp "$TMPDIR/logstats.XXXXXX")
# Automake sets $srcdir.
srcdir=$(cd $srcdir && pwd)
-./traffic_logstats --log_file "$srcdir/tests/logstats.blog" --summary > "$tmpfile"
+./traffic_logstats --log_file "$srcdir/tests/logstats.blog" --summary | fgrep -v 'symbol xid' > "$tmpfile"
diff "$tmpfile" "$srcdir/tests/logstats.summary"
rm -f -- "$tmpfile"

0 comments on commit bd070c6

Please sign in to comment.