testsuite: Fix line count test
a substring match is not enough, ex: 10 != 1
Fixes: 30383b074d ("tests: Add output testing")
Signed-off-by: Benjamin Poirier <bpoirier@cumulusnetworks.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
15322f46c3
commit
d88a6a98e8
|
|
@ -121,7 +121,7 @@ test_on_not()
|
||||||
test_lines_count()
|
test_lines_count()
|
||||||
{
|
{
|
||||||
echo -n "test on lines count ($1): "
|
echo -n "test on lines count ($1): "
|
||||||
if cat "$STD_OUT" | wc -l | grep -q "$1"
|
if [ $(cat "$STD_OUT" | wc -l) -eq "$1" ]
|
||||||
then
|
then
|
||||||
pr_success
|
pr_success
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue