]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
0023628: KERNEL_StressLauncher failure on CentOS 7.5 and wait command V9_2_0b1
authorvsr <vsr@opencascade.com>
Thu, 8 Nov 2018 14:57:41 +0000 (17:57 +0300)
committervsr <vsr@opencascade.com>
Thu, 8 Nov 2018 14:57:41 +0000 (17:57 +0300)
src/Launcher/Test/test_stress.sh

index 88505fab83cdc2758387976732176e5404f85e9b..97acc5d617c1081b430707824044cfce7d2dbe0a 100755 (executable)
@@ -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