summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-03-09 14:44:20 -0800
committerBen Pfaff <blp@nicira.com>2011-03-09 16:22:00 -0800
commit70315176de81b49b7dcd4d65f09991f3217813af (patch)
tree22ce27c1e6e841da813f5b256a4036339f400c82 /tests
parent6cd1276311130c6b6576cff47aea1068c42b7829 (diff)
downloadopenvswitch-70315176de81b49b7dcd4d65f09991f3217813af.tar.gz
ovs-ofctl: Make add-flows command read from stdin if file name is "-".
It is conventional for Unix tools to read from standard input if "-" is specified as a file name. It's easy for "ovs-ofctl add-flows" to behave this way, too, so this commit implements it. Suggested-by: Paul Ingram <paul@nicira.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ofproto.at2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ofproto.at b/tests/ofproto.at
index f266f34be..95067561c 100644
--- a/tests/ofproto.at
+++ b/tests/ofproto.at
@@ -46,7 +46,7 @@ AT_SETUP([ofproto - basic flow_mod commands])
OFPROTO_START
AT_CHECK([ovs-ofctl dump-flows br0 | STRIP_XIDS], [0], [NXST_FLOW reply:
])
-AT_CHECK([ovs-ofctl add-flow br0 in_port=1,actions=0])
+AT_CHECK([echo 'in_port=1,actions=0' | ovs-ofctl add-flows br0 -])
AT_CHECK([ovs-ofctl add-flow br0 in_port=0,actions=1])
AT_CHECK([ovs-ofctl dump-flows br0 | STRIP_XIDS | STRIP_DURATION], [0], [dnl
NXST_FLOW reply: