1
0
Fork 0

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>
This commit is contained in:
Daniel Thompson 2020-10-21 20:48:12 +01:00
parent fc502cdcaa
commit 2bb0837440

View file

@ -289,6 +289,9 @@ if __name__ == '__main__':
if not args.verbose: if not args.verbose:
print_log(console.logfile) print_log(console.logfile)
sys.exit(1) sys.exit(1)
if not args.verbose:
console.logfile.close()
console.logfile = None
macaddr = console.match.group(1) macaddr = console.match.group(1)
console.expect('Exit console using Ctrl-X') console.expect('Exit console using Ctrl-X')