Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion easybuild/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,10 @@ def main(args=None, logfile=None, do_build=None, testing=False, modtool=None):

correct_builds_cnt = len([ec_res for (_, ec_res) in ecs_with_res if ec_res.get('success', False)])
overall_success = correct_builds_cnt == len(ordered_ecs)
success_msg = "Build succeeded for %s out of %s" % (correct_builds_cnt, len(ordered_ecs))
success_msg = "Build succeeded "
if build_option('ignore_test_failure'):
success_msg += "(with --ignore-test-failure) "
success_msg += "for %s out of %s" % (correct_builds_cnt, len(ordered_ecs))

repo = init_repository(get_repository(), get_repositorypath())
repo.cleanup()
Expand Down
8 changes: 8 additions & 0 deletions test/framework/toy_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -3491,6 +3491,14 @@ def test_toy_build_sanity_check_linked_libs(self):
self.test_toy_build(ec_file=test_ec, extra_args=args, force=False,
raise_error=True, verbose=False, verify=False)

def test_toy_ignore_test_failure(self):
"""Check whether use of --ignore-test-failure is mentioned in build output."""
args = ['--ignore-test-failure']
stdout, stderr = self.run_test_toy_build_with_output(extra_args=args, verify=False, testing=False)

self.assertTrue("Build succeeded (with --ignore-test-failure) for 1 out of 1" in stdout)
self.assertFalse(stderr)


def suite():
""" return all the tests in this file """
Expand Down