Skip to content

Commit

Permalink
[test:job_backend] Prevent deprecation warning from causing test fail…
Browse files Browse the repository at this point in the history
…ures
  • Loading branch information
gkaf89 committed Oct 2, 2024
1 parent 098fb37 commit e6391c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/framework/parallelbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,10 @@ def test_build_easyconfigs_in_parallel_gc3pie(self):
topdir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
test_easyblocks_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'sandbox')
cmd = "PYTHONPATH=%s:%s:$PYTHONPATH eb %%(spec)s -df" % (topdir, test_easyblocks_path)

self.allow_deprecated_behaviour()
build_easyconfigs_in_parallel(cmd, ordered_ecs, prepare_first=False)
self.disallow_deprecated_behaviour()

toy_modfile = os.path.join(self.test_installpath, 'modules', 'all', 'toy', '0.0')
if get_module_syntax() == 'Lua':
Expand All @@ -279,8 +282,10 @@ def test_build_easyconfigs_in_parallel_gc3pie(self):
write_file(test_ecfile, ectxt)
ecs = resolve_dependencies(process_easyconfig(test_ecfile), self.modtool)

self.allow_deprecated_behaviour()
error = "1 jobs failed: toy-1.2.3"
self.assertErrorRegex(EasyBuildError, error, build_easyconfigs_in_parallel, cmd, ecs, prepare_first=False)
self.disallow_deprecated_behaviour()

def test_submit_jobs(self):
"""Test submit_jobs"""
Expand Down

0 comments on commit e6391c3

Please sign in to comment.