mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-06 17:47:01 +02:00
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:
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
@@ -299,6 +299,11 @@ jobs:
|
||||
- name: run itest
|
||||
run: make itest-parallel windows=1
|
||||
|
||||
- name: kill any remaining lnd processes
|
||||
if: ${{ failure() }}
|
||||
shell: powershell
|
||||
run: taskkill /IM lnd-itest.exe /T /F
|
||||
|
||||
- name: Zip log files on failure
|
||||
if: ${{ failure() }}
|
||||
timeout-minutes: 5 # timeout after 5 minute
|
||||
|
@@ -33,6 +33,5 @@ for pid in "${pids[@]}"; do
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
# Exit with the exit code of the first failing itest or 0.
|
||||
exit $exit_code
|
||||
|
Reference in New Issue
Block a user