Commit 61940634 authored by Jérome Perrin's avatar Jérome Perrin

standalone-shared/tests: only include full output when test fails

parent 7976a111
Pipeline #23523 failed with stage
in 0 seconds
...@@ -13,12 +13,10 @@ class TestSiteStatus(unittest.TestCase): ...@@ -13,12 +13,10 @@ class TestSiteStatus(unittest.TestCase):
def test_build(self): def test_build(self):
"""Checks that site was correctly created""" """Checks that site was correctly created"""
# expose output for debugging self.assertTrue(
print('Standard output:') self.status_dict['success'],
print(self.status_dict['stdout']) # expose output in case of failure for debugging
print('Standard error:') self.status_dict)
print(self.status_dict['stderr'])
self.assertTrue(self.status_dict['success'])
def test_build_time(self): def test_build_time(self):
"""Asserts that site was built in acceptable time""" """Asserts that site was built in acceptable time"""
......
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