From: Ben Pfaff Date: Tue, 21 Sep 2010 21:27:51 +0000 (-0700) Subject: tests: Add 5-second timeout to ovs-vsctl tests. X-Git-Tag: v1.1.0~1110 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=b524945e78804bf4ef46abb936eba829538f8e29;p=sliver-openvswitch.git tests: Add 5-second timeout to ovs-vsctl tests. Otherwise some of the tests may not terminate if something goes wrong. (Formerly, ovs-vsctl had a default timeout of 5 seconds, so this was not necessary before.) --- diff --git a/tests/ovs-vsctl.at b/tests/ovs-vsctl.at index 56fc1ce2d..66ead6dd3 100644 --- a/tests/ovs-vsctl.at +++ b/tests/ovs-vsctl.at @@ -15,17 +15,17 @@ dnl RUN_OVS_VSCTL(COMMAND, ...) dnl dnl Executes each ovs-vsctl COMMAND. m4_define([RUN_OVS_VSCTL], - [m4_foreach([command], [$@], [ovs-vsctl --no-wait -vreconnect:ANY:emer --db=unix:socket -- command + [m4_foreach([command], [$@], [ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- command ])]) m4_define([RUN_OVS_VSCTL_ONELINE], - [m4_foreach([command], [$@], [ovs-vsctl --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- command + [m4_foreach([command], [$@], [ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- command ])]) dnl RUN_OVS_VSCTL_TOGETHER(COMMAND, ...) dnl dnl Executes each ovs-vsctl COMMAND in a single run of ovs-vsctl. m4_define([RUN_OVS_VSCTL_TOGETHER], - [ovs-vsctl --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline dnl + [ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline dnl m4_foreach([command], [$@], [ -- command])]) dnl CHECK_BRIDGES([BRIDGE, PARENT, VLAN], ...)