Commit fcf219db authored by Li Xi's avatar Li Xi Committed by Oleg Drokin
Browse files

LU-12802 tests: speedup cleanup of racer

After racer test survives for a given time, it starts to cleanup.
And the parent script waits the child racer/
to exit. However sometimes, somehow, this stucks for a long time.
Sending a signal to remaining dd(or other) processes will wake up
the wait in parent script immediately.


Test-Parameter: trivial testlist=racer
DDN-Bug-ID: DDN-256
Signed-off-by: default avatarLi Xi <>
Reviewed-by: default avatarGu Zheng <>
Reviewed-by: default avatarWang Shilong <>
Change-Id: I2ff2784b76faa0532c39af29b1586a48f2b90a21

Reviewed-by: default avatarShilong Wang <>
Tested-by: default avatarjenkins <>
Tested-by: default avatarMaloo <>
Reviewed-by: default avatarJian Yu <>
Reviewed-by: default avatarOleg Drokin <>
parent 38c8fdfd
......@@ -45,6 +45,14 @@ racer_cleanup()
killall -0 $
[[ $? -eq 0 ]] && (( rc+=1 ))
# Kill dd processes to speedup cleanup
local pids=$(ps uax | grep "$DIR" | grep dd | grep -v grep |
awk '{print $2}')
for pid in $pids; do
kill $pid
if [[ $rc -eq 0 ]]; then
echo there should be NO racer processes:
ps uww -C "${RACER_PROGS// /.sh,}.sh"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment