From 1e4f737a7d691373b9a529ee05d533064c368c81 Mon Sep 17 00:00:00 2001 From: Jean Raby Date: Tue, 22 Jan 2013 15:24:21 -0500 Subject: [PATCH] test-sogo-tool.py: Use sudo instead of su - --- Tests/Integration/test-sogo-tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Integration/test-sogo-tool.py b/Tests/Integration/test-sogo-tool.py index 1da98ca54..1e4e604c1 100755 --- a/Tests/Integration/test-sogo-tool.py +++ b/Tests/Integration/test-sogo-tool.py @@ -32,7 +32,7 @@ class sogoToolTest(unittest.TestCase): self.assertEqual(os.getuid(), 0, "this test must run as root...") os.chown(self.backupdir, uid, gid) - status = os.system("su - %s -c \"(cd %s && %s backup . ALL >/dev/null 2>&1)\"" + status = os.system("sudo -u %s bash -c \"(cd %s && %s backup . ALL >/dev/null 2>&1)\"" % (sogo_user, self.backupdir, sogo_tool_path)) rc=os.WEXITSTATUS(status)