From: vsr Date: Thu, 8 Nov 2018 14:57:41 +0000 (+0300) Subject: 0023628: KERNEL_StressLauncher failure on CentOS 7.5 and wait command X-Git-Tag: V9_2_0b1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1d7e9aa036533dc3e1da4223c961ca2b3f5fc827;p=modules%2Fkernel.git 0023628: KERNEL_StressLauncher failure on CentOS 7.5 and wait command --- 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