From 4d5e1942bd8c219a60442c0a37799341f20bc66f Mon Sep 17 00:00:00 2001 From: Justin Husted Date: Sat, 28 Dec 2019 15:39:20 -0800 Subject: [PATCH] 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 --- tests/util.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/util.py b/tests/util.py index a9e97464..c96f2eeb 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()