[ovs-dev] [PATCH v2 1/2] ofproto.at: Don't specify the specific error.

Gurucharan Shetty shettyg at nicira.com
Thu Jun 18 21:17:25 UTC 2015


On Windows, we don't do a good job of translating errors to Linux
type errors.  So in the tests, don't look for a specific type of
error.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
---
 tests/ofproto.at |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/ofproto.at b/tests/ofproto.at
index 9c5f0bb..f3da397 100644
--- a/tests/ofproto.at
+++ b/tests/ofproto.at
@@ -3676,13 +3676,14 @@ add table=254 actions=drop
 ])
 
 AT_CHECK([ovs-ofctl --bundle add-flows br0 flows.txt 2>&1 | sed '/|WARN|/d
-s/unix:.*br0\.mgmt/unix:br0.mgmt/'], [0], [dnl
+s/unix:.*br0\.mgmt/unix:br0.mgmt/' | sed 's/(.* error)/(error)/'],
+[0], [dnl
 OFPT_ERROR (OF1.4) (xid=0xb): OFPBRC_EPERM
 OFPT_FLOW_MOD (OF1.4) (xid=0xb): ADD table:254 actions=drop
 OFPT_ERROR (OF1.4) (xid=0xd): OFPBFC_MSG_FAILED
 OFPT_BUNDLE_CONTROL (OF1.4) (xid=0xd):
  bundle_id=0 type=COMMIT_REQUEST flags=atomic ordered
-ovs-ofctl: talking to unix:br0.mgmt (Protocol error)
+ovs-ofctl: talking to unix:br0.mgmt (error)
 ])
 
 AT_CHECK([ovs-ofctl dump-flows br0 | ofctl_strip | sort], [0], [dnl
-- 
1.7.9.5




More information about the dev mailing list