From e6391c3ff4f5da25c68d11831e317f91b1665f51 Mon Sep 17 00:00:00 2001 From: Georgios Kafanas Date: Fri, 27 Sep 2024 12:49:56 +0200 Subject: [PATCH] [test:job_backend] Prevent deprecation warning from causing test failures --- test/framework/parallelbuild.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/framework/parallelbuild.py b/test/framework/parallelbuild.py index ce3f8331d4..2f4d90884f 100644 --- a/test/framework/parallelbuild.py +++ b/test/framework/parallelbuild.py @@ -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': @@ -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"""