Change-Id: Iec2471dcc97c8a2d73df6afe1b93db95b6316c4f
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
TEMP_FILE=$(mktemp -t tmp.streaming_high_throughput_limit_file1.XXXXXX)
TEMP_FILE_2=$(mktemp -t tmp.streaming_high_throughput_limit_file2.XXXXXX)
- traced=$("$BABELTRACE_BIN" "$TRACE_PATH" 2>/dev/null | wc -l)
- "$BABELTRACE_BIN" "$TRACE_PATH" >/dev/null 2>"$TEMP_FILE_2"
-
+ traced=$("$BABELTRACE_BIN" "$TRACE_PATH" 2>"${TEMP_FILE_2}" | wc -l)
cat "$TEMP_FILE_2" | cut -f4 -d " " >"$TEMP_FILE"
dropped=0
TEMP_FILE=$(mktemp -t tmp.test_high_throughput_tmp_file1.XXXXXX)
TEMP_FILE_2=$(mktemp -t tmp.test_high_throughput_tmp_file2.XXXXXX)
-traced=$("$BABELTRACE_BIN" $TRACE_PATH 2>/dev/null | wc -l)
-"$BABELTRACE_BIN" $TRACE_PATH >/dev/null 2>$TEMP_FILE_2
-
+traced=$("$BABELTRACE_BIN" $TRACE_PATH 2>"${TEMP_FILE_2}" | wc -l)
cat $TEMP_FILE_2 | cut -f4 -d " " >$TEMP_FILE
dropped=0