auto-t: testNetconfig stop dhcpd correctly
Use stop_process instead of kill as this removes the process from the test context.
This commit is contained in:
parent
e8389190a9
commit
e5a66bf51f
|
@ -70,8 +70,9 @@ class Test(unittest.TestCase):
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
IWD.clear_storage()
|
IWD.clear_storage()
|
||||||
cls.dhcpd_pid.kill()
|
ctx.stop_process(cls.dhcpd_pid)
|
||||||
os.system('rm -rf /tmp/dhcpd.leases')
|
cls.dhcpd_pid = None
|
||||||
|
os.remove('/tmp/dhcpd.leases')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main(exit=True)
|
unittest.main(exit=True)
|
||||||
|
|
Loading…
Reference in New Issue