From: Justin Husted Date: Sat, 28 Dec 2019 23:39:20 +0000 (-0800) Subject: bachefs-tools: Fix broken test code. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4d5e1942bd8c219a60442c0a37799341f20bc66f;p=bcachefs-tools-debian bachefs-tools: Fix broken test code. A check was missing in some of the python test code, probably from a bad cherry-pick. Signed-off-by: Justin Husted --- diff --git a/tests/util.py b/tests/util.py index a9e9746..c96f2ee 100644 --- a/tests/util.py +++ b/tests/util.py @@ -210,10 +210,11 @@ class BFuse: run("fusermount3", "-zu", self.mnt) print("Waiting for thread to exit.") - self.thread.join(timeout) - if self.thread.is_alive(): - self.proc.kill() - self.thread.join() + if self.thread: + self.thread.join(timeout) + if self.thread.is_alive(): + self.proc.kill() + self.thread.join() self.thread = None self.ready.clear()