tests: Use on_exit in ovsdb-idl tests.
authorDaniele Di Proietto <diproiettod@vmware.com>
Mon, 23 May 2016 21:36:24 +0000 (14:36 -0700)
committerDaniele Di Proietto <diproiettod@vmware.com>
Tue, 24 May 2016 05:00:01 +0000 (22:00 -0700)
commit7427f2a446120703921d9df8b8214b74332fb262
treedd5a2d22ccac93f2ba6a823b6cfd8117918908c2
parent98c086db48a1192f6ee316b90fa3739512aebd63
tests: Use on_exit in ovsdb-idl tests.

Instead of hardcoding 'kill `cat pid`' on every call to AT_CHECK is
simpler to use on_exit.

This makes sure that we kill every started daemon and fixes a travis
build timeout.

Suggested-by: Ben Pfaff <blp@ovn.org>
Tested-at: https://travis-ci.org/ddiproietto/ovs/builds/132404750
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Acked-by: Ben Pfaff <blp@ovn.org>
tests/ovsdb-idl.at