Skip to content

Commit b29968f

Browse files
committed
Avoid stdout when running eb_main
1 parent b5b391e commit b29968f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/framework/options.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,9 @@ def test_skip_test_step(self):
353353
'--force',
354354
'--debug',
355355
]
356+
self.mock_stdout(True)
356357
outtxt = self.eb_main(args, do_build=True)
358+
self.mock_stdout(False)
357359
found_msg = "Running method test_step part of step test"
358360
found = re.search(found_msg, outtxt)
359361
test_run_msg = "execute make_test dummy_cmd as a command for running unit tests"
@@ -363,7 +365,9 @@ def test_skip_test_step(self):
363365

364366
# And now with the argument
365367
args.append('--skip-test-step')
368+
self.mock_stdout(True)
366369
outtxt = self.eb_main(args, do_build=True)
370+
self.mock_stdout(False)
367371
found_msg = "Skipping test step"
368372
found = re.search(found_msg, outtxt)
369373
self.assertTrue(found, "Message about test step being skipped is present, outtxt: %s" % outtxt)

0 commit comments

Comments
 (0)