aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-08-22 07:57:46 -0600
committerTom Rini <trini@konsulko.com>2024-08-26 18:51:48 -0600
commitab84ffccd6c2a28a04feed8f17206a68e3adb928 (patch)
tree75fd3a07aef378464fd1bd73e1a5e5db63e9576d /tools
parente93d343cc7d2886b1148d885aa137d46bbce0570 (diff)
downloadu-boot-ab84ffccd6c2a28a04feed8f17206a68e3adb928.tar.gz
buildman: Make test_process_limit handle time.monotonic()
Newer versions of filelock use time.monotonic() instead of time.time(). Update the test the handle this. It would be better if filelock had support for writing unit tests which use locking. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/buildman/test.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/buildman/test.py b/tools/buildman/test.py
index bfad3093030..e9d2c7e41b0 100644
--- a/tools/buildman/test.py
+++ b/tools/buildman/test.py
@@ -779,6 +779,7 @@ class TestBuild(unittest.TestCase):
tmpdir = self.base_dir
with (patch('time.time', 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)):
# Grab the process. Since there is no other profcess, this should