From: Mathieu Desnoyers Date: Wed, 12 Jul 2017 20:55:21 +0000 (-0400) Subject: Fix: test: expect the new warning format for seqnum X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=165711ff00cd1e76259fb1b00d1c07117e135394 Fix: test: expect the new warning format for seqnum Signed-off-by: Mathieu Desnoyers Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/tests/cli/test_packet_seq_num.in b/tests/cli/test_packet_seq_num.in index 640793b7..b9e62057 100644 --- a/tests/cli/test_packet_seq_num.in +++ b/tests/cli/test_packet_seq_num.in @@ -48,10 +48,10 @@ test_lost() { ok $? "Trace parses" # Convert warnings like: - # [warning] Tracer lost 2 trace packets between .... - # [warning] Tracer lost 3 trace packets between .... + # WARNING: Tracer discarded 2 trace packets between .... + # WARNING: Tracer discarded 3 trace packets between .... # into "2,3" and make sure it matches the expected result - $BABELTRACE_BIN $trace 2>&1 >/dev/null | @GREP@ "\[warning\] Tracer lost" \ + $BABELTRACE_BIN $trace 2>&1 >/dev/null | @GREP@ "WARNING: Tracer discarded" \ | cut -d" " -f4 | tr "\n" "," | @SED@ "s/.$//" | \ @GREP@ "$expectedcountstr" >/dev/null ok $? "Lost events string matches $expectedcountstr"