diff options
author | Ilya Maximets <i.maximets@samsung.com> | 2018-08-14 10:53:16 +0300 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-08-15 11:36:18 -0700 |
commit | 9551e80befc0f8ecc5ee8a7e025147358c2753ee (patch) | |
tree | 02defe18c297a92f9426f74918ed2f4bb335f51d /vtep | |
parent | cbcf40a847c0539fec36e82410f0966f13517964 (diff) | |
download | openvswitch-9551e80befc0f8ecc5ee8a7e025147358c2753ee.tar.gz |
tests: Use environment variable for default timeout.
Introduce new 'OVS_CTL_TIMEOUT' environment variable
that, if set, will be used as a default timeout for
OVS control utilities. Setting it in 'atlocal.in' will
cover all the hangs inside the testsuite, even when
utils called in a subshell.
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'vtep')
-rw-r--r-- | vtep/vtep-ctl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vtep/vtep-ctl.c b/vtep/vtep-ctl.c index fb3c81e2b..ab552457d 100644 --- a/vtep/vtep-ctl.c +++ b/vtep/vtep-ctl.c @@ -119,9 +119,7 @@ main(int argc, char *argv[]) VLOG(ctl_might_write_to_db(commands, n_commands) ? VLL_INFO : VLL_DBG, "Called as %s", args); - if (timeout) { - time_alarm(timeout); - } + ctl_timeout_setup(timeout); /* Initialize IDL. */ idl = the_idl = ovsdb_idl_create(db, &vteprec_idl_class, false, false); |