buildman: Update tests for newer filelock module
authorSimon Glass <sjg@chromium.org>
Tue, 4 Feb 2025 23:33:53 +0000 (16:33 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 21 Feb 2025 20:11:05 +0000 (14:11 -0600)
Recent versions of this module call time.perf_counter() so add a patch
for this also.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Tom Rini <trini@konsulko.com>
tools/buildman/test.py

index 385a34e..c5feb74 100644 (file)
@@ -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)):