mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-03 03:12:17 +00:00
Make sure userdel cleans up after itself in test
This commit is contained in:
parent
959a4e3177
commit
e3b1bb1ab7
@ -168,7 +168,7 @@ class SemanageTests(unittest.TestCase):
|
||||
p = Popen(["semanage", "login", "-d", "testlogin" ], stdout = PIPE)
|
||||
out, err = p.communicate()
|
||||
print("Verify userdel ")
|
||||
p = Popen(["userdel", "testlogin" ], stdout = PIPE)
|
||||
p = Popen(["userdel", "-f", "-r", "testlogin" ], stderr = PIPE, stdout = PIPE)
|
||||
out, err = p.communicate()
|
||||
self.assertSuccess(p.returncode, err)
|
||||
print("Verify semanage user -d")
|
||||
|
Loading…
Reference in New Issue
Block a user