From 5bd4ae8a4f4f14f15ac87817faccebd5b42aba79 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Wed, 6 Jun 2018 10:41:45 -0400 Subject: [PATCH] (fix) more verbose output --- Tests/Integration/test-sogo-tool.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Tests/Integration/test-sogo-tool.py b/Tests/Integration/test-sogo-tool.py index afbb89c29..46254e817 100755 --- a/Tests/Integration/test-sogo-tool.py +++ b/Tests/Integration/test-sogo-tool.py @@ -32,10 +32,11 @@ class sogoToolTest(unittest.TestCase): self.assertEqual(os.getuid(), 0, "this test must run as root...") os.chown(self.backupdir, uid, gid) - status = os.system("sudo -u %s bash -c \"(cd %s && %s backup . ALL >/dev/null 2>&1)\"" - % (sogo_user, self.backupdir, sogo_tool_path)) + cmd = "sudo -u %s bash -c \"(cd %s && %s backup . ALL >/dev/null 2>&1)\"" % (sogo_user, self.backupdir, sogo_tool_path) + print "sogo-tool cmd to execute %s" % cmd + status = os.system(cmd) print "Exit status of os.system(): %d" % status - rc=os.WEXITSTATUS(status) + rc = os.WEXITSTATUS(status) self.assertEqual(rc, 0, "sogo-tool failed RC=%d" % rc)