Skip to content

Commit 15e93e1

Browse files
Fix
1 parent a0fb323 commit 15e93e1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

apps/wolfsshd/test/run_all_sshd_tests.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,15 @@ else
413413
fi
414414
fi
415415

416+
# Teardown safety net: the start/stop pairs above stop each daemon they start,
417+
# but background test daemons survive across CI steps that share this runner,
418+
# and a later step (the valgrind "memory after close down" check) binds the same
419+
# port 22222. Make sure no test daemon lingers when this script exits so that
420+
# step does not fail with "tcp bind failed". Harmless when nothing is running.
421+
if [ "$USING_LOCAL_HOST" == 1 ]; then
422+
sudo pkill -f "wolfsshd" 2>/dev/null || true
423+
fi
424+
416425
printf "All tests ran, $TOTAL passed, $SKIPPED skipped\n"
417426

418427
exit 0

0 commit comments

Comments
 (0)