[ovs-git] Open vSwitch: ofproto-dpif: Kill off test-netflow daemon if test fails. (master)

dev at openvswitch.org dev at openvswitch.org
Mon Aug 20 19:30:04 UTC 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  0bb1b69217c743116ff6f53eb40db8fe973659c0 (commit)
       via  0b7140bbc55768f9f1d12f2cc42fa29c5fa98483 (commit)
      from  1e95906159ad032be97a2122e9816b85bdc4ab32 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0bb1b69217c743116ff6f53eb40db8fe973659c0
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=0bb1b69217c743116ff6f53eb40db8fe973659c0
Author: Ben Pfaff <blp at nicira.com>
		
ofproto-dpif: Kill off test-netflow daemon if test fails.
		
Signed-off-by: Ben Pfaff <blp at nicira.com>


commit 0b7140bbc55768f9f1d12f2cc42fa29c5fa98483
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=0b7140bbc55768f9f1d12f2cc42fa29c5fa98483
Author: Ben Pfaff <blp at nicira.com>
		
tests: New m4 macro ON_EXIT to add a cleanup action.
		
Several of the tests start daemons and then need to make sure that the
daemons get killed when the test completes, even if it completes in the
middle due to an early failure.  Until now, they have been using manual
shell "trap" calls to do this.  This works well enough for simple cases,
but sometimes multiple macros start daemons in a single test, and then
each "trap" has to be carefully written to kill off the daemons for the
previously invoked macros.

This commit introduces a new macro ON_EXIT whose use is composable: each
call appends a new action to the ones already specified.

Signed-off-by: Ben Pfaff <blp at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 tests/ofproto-dpif.at      |    2 ++
 tests/ofproto-macros.at    |    5 ++---
 tests/ofproto.at           |    2 +-
 tests/ovs-monitor-ipsec.at |    2 +-
 tests/ovs-vsctl.at         |    2 +-
 tests/ovs-xapi-sync.at     |    2 +-
 tests/testsuite.at         |   11 +++++++++++
 tests/unixctl-py.at        |    3 +--
 tests/vlog.at              |    9 ++++-----
 9 files changed, 24 insertions(+), 14 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list