Skip to content

Commit

Permalink
tests: avoid non-posix options to wc
Browse files Browse the repository at this point in the history
The '--lines' option for the wc command is a GNU extension and is not
recognized by some implemenations. Use the POSIX 1003.1 '-l' option
instead.

Signed-off-by: Lance Richardson <[email protected]>
Signed-off-by: Russell Bryant <[email protected]>
  • Loading branch information
hlrichardson authored and russellb committed Aug 4, 2017
1 parent e7cd8c3 commit 0d31e5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ovn.at
Original file line number Diff line number Diff line change
Expand Up @@ -7442,12 +7442,12 @@ expected=${dst_mac}${src_mac}08004500001c000000003f110100${src_ip}${dst_ip}00351
echo $expected >> hv2-vif1.expected
OVN_CHECK_PACKETS([hv2/vif1-tx.pcap], [hv2-vif1.expected])

AT_CHECK([ovn-sbctl --bare --columns _uuid find Port_Binding logical_port=cr-alice | wc --lines], [0], [1
AT_CHECK([ovn-sbctl --bare --columns _uuid find Port_Binding logical_port=cr-alice | wc -l], [0], [1
])

ovn-nbctl --timeout=3 --wait=sb remove Logical_Router_Port alice options redirect-chassis

AT_CHECK([ovn-sbctl find Port_Binding logical_port=cr-alice | wc --lines], [0], [0
AT_CHECK([ovn-sbctl find Port_Binding logical_port=cr-alice | wc -l], [0], [0
])

OVN_CLEANUP([hv1],[hv2],[hv3])
Expand Down

0 comments on commit 0d31e5b

Please sign in to comment.