Skip to contentSkip to conversation

buildman: Update tests for newer filelock module

PATCH In review Simon Glass 2 participants 3 messages Feb 4, 2025 – Feb 22, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 buildman: Update tests for newer filelock module

Recent versions of this module call time.perf_counter() so add a patch for this also.

---

 tools/buildman/test.py | 1 +
 1 file changed, 1 insertion(+)
tools/buildman/test.py +1 -0
index 385a34e5254..c5feb74a105 100644
@@ -836,6 +836,7 @@ class TestBuild(unittest.TestCase):
         tmpdir = self.base_dir
 
         with (patch('time.time', side_effect=self.get_time),
+              patch('time.perf_counter', side_effect=self.get_time),
               patch('time.monotonic', side_effect=self.get_time),
               patch('time.sleep', side_effect=self.inc_time),
               patch('os.kill', side_effect=self.kill)):
Signature · 1 line
2.43.0
#2 lore raw
In reply to Simon Glass
Quoted 4 lines · Simon Glass

Recent versions of this module call time.perf_counter() so add a patch for this also.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom