From d830522446ea918d39270246e9dbe729c51927ae Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 8 Nov 2018 17:57:41 +0300 Subject: [PATCH] 0023628: KERNEL_StressLauncher failure on CentOS 7.5 and wait command --- src/Launcher/Test/test_stress.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Launcher/Test/test_stress.sh b/src/Launcher/Test/test_stress.sh index 88505fab8..97acc5d61 100755 --- a/src/Launcher/Test/test_stress.sh +++ b/src/Launcher/Test/test_stress.sh @@ -4,14 +4,16 @@ WORKDIR=`mktemp -d` echo WORKDIR: $WORKDIR cat > $WORKDIR/command.sh <<< 'echo "OK" > result.txt' chmod 755 $WORKDIR/command.sh +pid_launcher='' for i in {1..500} do python launcher_use_case.py $WORKDIR 2> $WORKDIR/log$i.err & + pid_launcher=$pid_launcher" "$! done exit_code=0 -for i in {1..500} +for i in "$pid_launcher" do - wait -n + wait $i ret=$? if [ $ret -ne "0" ] then -- 2.39.2