Commit 8df526a7 authored by Jérome Perrin's avatar Jérome Perrin

test_wrapper: make errors more informative

parent 66abc9c5
......@@ -135,6 +135,8 @@ class TestPidFile(WrapperTestCase):
time.sleep(0.1)
if os.path.exists(self.pidfile):
break
else:
self.fail(process.stdout.read())
with open(self.pidfile) as f:
pid = int(f.read())
......@@ -169,7 +171,7 @@ class TestPidFile(WrapperTestCase):
if process.pid == pid:
break
else:
self.fail('pidfile not updated', process.stdout.read())
self.fail('pidfile not updated: %s' % process.stdout.read())
class TestWaitForFiles(WrapperTestCase):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment