Skip to content

Commit e6391c3

Browse files
committed
[test:job_backend] Prevent deprecation warning from causing test failures
1 parent 098fb37 commit e6391c3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/framework/parallelbuild.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,10 @@ def test_build_easyconfigs_in_parallel_gc3pie(self):
262262
topdir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
263263
test_easyblocks_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'sandbox')
264264
cmd = "PYTHONPATH=%s:%s:$PYTHONPATH eb %%(spec)s -df" % (topdir, test_easyblocks_path)
265+
266+
self.allow_deprecated_behaviour()
265267
build_easyconfigs_in_parallel(cmd, ordered_ecs, prepare_first=False)
268+
self.disallow_deprecated_behaviour()
266269

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

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

285290
def test_submit_jobs(self):
286291
"""Test submit_jobs"""

0 commit comments

Comments
 (0)