-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 usedel in the semanage test suite was not cleaning up the directory. This patch looks good to me. acked. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlJuvqsACgkQrlYvE4MpobPdggCeORQCfWVa/1WDNso/TmSZCbBU Vs4AmwX7JQefy3efJjpu9620quI+quE+ =Lky2 -----END PGP SIGNATURE-----
>From 6075d4f2384dfae4a71714bb8acbcb4f11da7aed Mon Sep 17 00:00:00 2001 From: Dan Walsh <dwalsh@xxxxxxxxxx> Date: Mon, 28 Oct 2013 09:26:41 -0400 Subject: [PATCH 03/17] Make sure userdel cleans up after itself in test --- policycoreutils/semanage/test-semanage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policycoreutils/semanage/test-semanage.py b/policycoreutils/semanage/test-semanage.py index 0ee6845..d39013e 100644 --- a/policycoreutils/semanage/test-semanage.py +++ b/policycoreutils/semanage/test-semanage.py @@ -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") -- 1.8.3.1