Skip to content

Commit

Permalink
ci: Wait for grabcov process to terminate
Browse files Browse the repository at this point in the history
Since addition of internal checks in tdspool the test that uses
tdspool takes more times, sometimes more than other tests.
This cause the script to fail as it tries to use some files that
in the meantime get deleted as the test is still running.

Signed-off-by: Frediano Ziglio <[email protected]>
  • Loading branch information
freddy77 committed Jan 3, 2025
1 parent a04a87c commit da545ac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions misc/freetds_autobuild
Original file line number Diff line number Diff line change
Expand Up @@ -314,16 +314,17 @@ test_mssql2008() {

test_mssql2000() {
trap 'echo Error $? at line $LINENO' ERR
local pid_pool
local pid_pool pid_grab
cd test2
./misc/grabcov -o pool.cov_info -- ./src/pool/tdspool msde &> /dev/null &
pid_pool=$!
pid_grab=$!
sleep 5
pid_pool=$(pgrep -P $pid_pool tdspool)
pid_pool=$(pgrep -P $pid_grab tdspool)
cd ..
# do tests with mssql 2000
generic_test test2 PWD.msde_pool
kill $pid_pool
wait $pid_grab
}

left=(test1 test_mssql2008 test_mssql2000 test_sybase15)
Expand Down

0 comments on commit da545ac

Please sign in to comment.