Skip to content

Commit

Permalink
ovn: gracefully exit daemons in "3 HVs, 3 LS, 3 lports/LS, 1 LR" test
Browse files Browse the repository at this point in the history
Gracefully exit all daemons in this test case.

Signed-off-by: Lance Richardson <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
hlrichardson authored and blp committed Jul 2, 2016
1 parent e75451f commit eff49a5
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions tests/ovn.at
Original file line number Diff line number Diff line change
Expand Up @@ -1869,9 +1869,26 @@ AT_CHECK_UNQUOTED([sort < mac_bindings], [0], [`sort < mac_bindings.expected`
])

# Gracefully terminate daemons
for daemon in ovn-controller ovn-northd ovsdb-server; do
ovs-appctl -t $daemon exit
for sim in hv1 hv2 hv3; do
as $sim
OVS_APP_EXIT_AND_WAIT([ovn-controller])
OVS_APP_EXIT_AND_WAIT([ovs-vswitchd])
OVS_APP_EXIT_AND_WAIT([ovsdb-server])
done

as ovn-sb
OVS_APP_EXIT_AND_WAIT([ovsdb-server])

as ovn-nb
OVS_APP_EXIT_AND_WAIT([ovsdb-server])

as northd
OVS_APP_EXIT_AND_WAIT([ovn-northd])

as main
OVS_APP_EXIT_AND_WAIT([ovs-vswitchd])
OVS_APP_EXIT_AND_WAIT([ovsdb-server])

AT_CLEANUP

# 3 hypervisors, one logical switch, 3 logical ports per hypervisor
Expand Down

0 comments on commit eff49a5

Please sign in to comment.