Skip to content

Commit 5819213

Browse files
committed
netdevs: fixup test
1 parent 381fb8c commit 5819213

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/unit_tests/test_target/patches/tests/netdevs.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static_files:
3434
echo "Expected interface $dev not found"
3535
exit 1
3636
fi
37-
if ! $bb ifconfig $dev | $bb grep -q "^$dev"; then
37+
if ! $bb ifconfig $dev | $bb grep "^$dev" > /dev/null; then
3838
echo "Expected interface $dev not up"
3939
exit 1
4040
fi
@@ -52,19 +52,19 @@ static_files:
5252
echo "Checking stats for $dev..."
5353
echo "$ifconfig_out"
5454
55-
if ! echo "$ifconfig_out" | $bb grep -q "RX packets:$rx_p"; then
55+
if ! echo "$ifconfig_out" | $bb grep "RX packets:$rx_p" > /dev/null; then
5656
echo "$dev: RX packets not $rx_p"
5757
exit 1
5858
fi
59-
if ! echo "$ifconfig_out" | $bb grep -q "TX packets:$tx_p"; then
59+
if ! echo "$ifconfig_out" | $bb grep "TX packets:$tx_p" > /dev/null; then
6060
echo "$dev: TX packets not $tx_p"
6161
exit 1
6262
fi
63-
if ! echo "$ifconfig_out" | $bb grep -q "RX bytes:$rx_b"; then
63+
if ! echo "$ifconfig_out" | $bb grep "RX bytes:$rx_b" > /dev/null; then
6464
echo "$dev: RX bytes not $rx_b"
6565
exit 1
6666
fi
67-
if ! echo "$ifconfig_out" | $bb grep -q "TX bytes:$tx_b"; then
67+
if ! echo "$ifconfig_out" | $bb grep "TX bytes:$tx_b" > /dev/null; then
6868
echo "$dev: TX bytes not $tx_b"
6969
exit 1
7070
fi

0 commit comments

Comments
 (0)