The global statement is only required when assigning to a global
variable, not when simply reading its value. In teardown(), the global
SYSTEMD_PIDS and global OTHER_PIDS declarations are unnecessary because
these variables are only read. Remove both declarations from teardown().
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
def teardown(config):
- global SYSTEMD_PIDS, OTHER_PIDS
-
Process.kill(config, SYSTEMD_PIDS)
Process.kill(config, OTHER_PIDS)