From 21e4ed63756d87277b7867c13f980a8bd77cf4aa Mon Sep 17 00:00:00 2001 From: Yihao Shao <74238076+shaoyihao@users.noreply.github.com> Date: Thu, 8 Jan 2026 15:03:09 +0800 Subject: [PATCH] [bug fix] Replace map with for loop for umount_hook execution --- bin/run-fxmark.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/run-fxmark.py b/bin/run-fxmark.py index a5fe0aa..2092479 100755 --- a/bin/run-fxmark.py +++ b/bin/run-fxmark.py @@ -275,7 +275,8 @@ def umount(self, where): if p.returncode is not 0: break (umount_hook, self.umount_hook) = (self.umount_hook, []) - map(lambda hook: hook(), umount_hook); + for hook in umount_hook: + hook() def init_mem_disk(self): self.unset_loopdev()