From 1b1dd2501cbc230199f30038c5b0b96de585c259 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Sun, 6 Oct 2024 00:09:23 +0000 Subject: [PATCH] Fix tweak_map return value test for hwloc dep --- test/framework/robot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/framework/robot.py b/test/framework/robot.py index 8cf930ceb8..64d785a59d 100644 --- a/test/framework/robot.py +++ b/test/framework/robot.py @@ -1156,8 +1156,10 @@ def test_tweak_robotpath(self): # Check it picks up the untweaked dependency of the tweaked OpenMPI untweaked_hwloc = os.path.join(test_easyconfigs, 'h', 'hwloc', 'hwloc-1.11.8-GCC-6.4.0-2.28.eb') self.assertIn(untweaked_hwloc, specs) - # Check correctness of tweak_map - self.assertEqual(tweak_map, {tweaked_openmpi: untweaked_openmpi, tweaked_hwloc: untweaked_hwloc}) + # Check correctness of tweak_map (maps back to the original untweaked file, even for hwloc, where the + # tweaked version is generated but not used) + self.assertEqual(tweak_map, {tweaked_openmpi: untweaked_openmpi, + tweaked_hwloc: untweaked_hwloc.replace("6.4.0-2.28", "4.6.4")}) def test_robot_find_subtoolchain_for_dep(self): """Test robot_find_subtoolchain_for_dep."""