scripts: kill lnd on windows to access log files (#8076)

For some reason lnd doesn't properly shut down on some windows itests,
and the process still running makes it impossible to access its log
files.
So for the Windows integration test, we attempt to kill the whole
process tree once the process indicates it is done.
This commit is contained in:
Oliver Gugger authored and GitHub committed 2023-10-10 16:15:41 +02:00
1 parent 2d98dcf520
commit abb1e3463f
2 files changed
+8 -4

No files matched your search

+3 -4
View File
@@ -26,13 +26,12 @@ for pid in "${pids[@]}"; do
# Overwrite the exit code if current itest doesn't return 0.
if [ $current_exit_code -ne 0 ]; then
# Only write the exit code of the first failing itest.
if [ $exit_code -eq 0 ]; then
# Only write the exit code of the first failing itest.
if [ $exit_code -eq 0 ]; then
exit_code=$current_exit_code
fi
fi
fi
done
# Exit with the exit code of the first failing itest or 0.
exit $exit_code