summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-10-21 19:48:12 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-10-21 19:48:12 (GMT)
commit2bb083744092c28ef580f8abb5ce5e236e793a74 (patch)
tree554e4a45e94f184db9cced3eaa783adcbd76e976 /tools
parentfc502cdcaa96975cb9b503a82de5b0be9d09caff (diff)
tools: wasptool: Fix verbose/not-verbose handling
Fixes: 2839a04 ("tools: wasptool: Hide the stack trace on pexpect timeout") Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/wasptool3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/wasptool b/tools/wasptool
index 59f9b6f..339344e 100755
--- a/tools/wasptool
+++ b/tools/wasptool
@@ -289,6 +289,9 @@ if __name__ == '__main__':
if not args.verbose:
print_log(console.logfile)
sys.exit(1)
+ if not args.verbose:
+ console.logfile.close()
+ console.logfile = None
macaddr = console.match.group(1)
console.expect('Exit console using Ctrl-X')