From c5da4d9c46f39eb090029d47b39e28786c8c8797 Mon Sep 17 00:00:00 2001 From: Mateusz Majewski Date: Wed, 5 Feb 2020 08:21:55 +0100 Subject: [PATCH] Fix the sed command This command used to be wrong because it contains a star. When shell sees the star, it expands it, which is very wrong in our case. The test somehow still passes, but sed spams the error message on the stderr, which is unhelpful while debugging. Change-Id: Ief9666698b7163e6b332bb5c7535cc6814abd50e --- tests/dlog_test.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dlog_test.in b/tests/dlog_test.in index a6905d6..43bb832 100644 --- a/tests/dlog_test.in +++ b/tests/dlog_test.in @@ -514,7 +514,7 @@ for format in $sort_formats; do # filter out empty lines in "long" format [ -z "$line" ] && continue # filter out non-timestamp lines in "long" format - if [ $format == "long" ] && [ "`echo "$line" | sed -re s/^\[[[:print:]]*\]$/line_ok/g`" != "line_ok" ]; then + if [ $format == "long" ] && [ "`echo "$line" | sed -re 's/^\[[[:print:]]*\]$/line_ok/g'`" != "line_ok" ]; then continue fi -- 2.7.4