Skip to content

Commit 897528b

Browse files
committed
Fix a syntax error, and add a wrapper to catch the error
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
1 parent 07d0f9c commit 897528b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_helper.tcl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,11 @@ proc read_from_test_client fd {
494494
flush stdout
495495
gets stdin
496496
}
497-
} } elseif {$status eq {exception}} {
497+
} elseif {$status eq {exception}} {
498498
puts "\[[colorstr red $status]\]: $data"
499-
write_test_failures
499+
if {[catch {write_test_failures} err]} {
500+
puts "Warning: Failed to write test failures: $err"
501+
}
500502
kill_clients
501503
force_kill_all_servers
502504
exit 1

0 commit comments

Comments
 (0)