test-sogo-tool.py: Use sudo instead of su -

pull/9/head
Jean Raby 2013-01-22 15:24:21 -05:00
parent 8d9cfdb3b4
commit 1e4f737a7d
1 changed files with 1 additions and 1 deletions

View File

@ -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)