Properly clean up ovn-northd in functional tests
ovn-northd.ctl is a socket, so os.path.isfile() returns false and ovn-northd is not properly killed. Use os.path.exists() instead. Closes-Bug: #1952023 Change-Id: I00fba2dc4395c0a8cd4631d4c2c71d9c3dc429e9
This commit is contained in:
@@ -82,7 +82,7 @@ class OvnNorthd(DaemonProcessFixture):
|
||||
|
||||
def stop(self):
|
||||
try:
|
||||
if os.path.isfile(self.unixctl_path):
|
||||
if os.path.exists(self.unixctl_path):
|
||||
stop_cmd = ['ovs-appctl', '-t', self.unixctl_path, 'exit']
|
||||
utils.execute(stop_cmd)
|
||||
except Exception:
|
||||
|
Reference in New Issue
Block a user