Skip to content

Commit

Permalink
Exit physrep in log-trigger test
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Hannum <[email protected]>
  • Loading branch information
markhannum committed Jan 17, 2025
1 parent faa452e commit 419ee4b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/log_trigger.test/runit
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,15 @@ trap - INT EXIT
setup
run_test

if [[ $PHYSREP_PID -ne -1 ]]; then
# Tear down physrep
r=0
while [[ "$r" == 0 ]]; do
echo "Exiting physrep"
${CDB2SQL_EXE} $DESTDB --host localhost "exec procedure sys.cmd.send('exit')"
r=$?
kill -9 $PHYSREP_PID
fi
sleep 1
done

if [[ -f "$stopfile" ]]; then
echo "Testcase failed"
Expand Down

0 comments on commit 419ee4b

Please sign in to comment.