File tree Expand file tree Collapse file tree
prodtests/full-system-test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ if [[ -z $1 || -z $2 ]]; then
77 exit 1
88fi
99
10- if [[ ` which StfBuilder 2> /dev/null | wc -l` == " 0 " || -z $O2_ROOT ]]; then
10+ if [[ $1 == " DD " && ` which StfBuilder 2> /dev/null | wc -l` -eq 0 ]] || [[ -z $O2_ROOT ]]; then
1111 echo " ERROR: DataDistribution or O2 environment not loaded"
1212 exit 1
1313fi
@@ -30,7 +30,7 @@ LOG_PREFIX="log_$(date +%Y%m%d-%H%M%S)_"
3030[[ -z $OVERRIDE_SESSION ]] && export OVERRIDE_SESSION=default_$$ _$RANDOM
3131[[ -z $INRAWCHANNAME ]] && export INRAWCHANNAME=tf-builder-$$ -$RANDOM
3232
33- if [[ " 0$IGNORE_EXISTING_SHMFILES " != " 01" && ` ls /dev/shm/* fmq* 2> /dev/null | wc -l` != " 0 " ]]; then
33+ if [[ " 0$IGNORE_EXISTING_SHMFILES " != " 01" && ` ls /dev/shm/* fmq* 2> /dev/null | wc -l` -ne 0 ]]; then
3434 echo " ERROR: Existing SHM files (you can set IGNORE_EXISTING_SHMFILES=1 to ignore and allow multiple parallel reconstruction sessions)"
3535 exit 1
3636fi
@@ -82,7 +82,7 @@ if [[ "0$4" != "00" ]]; then
8282fi
8383
8484TIMEOUT_PHASE=0
85- while [[ ` jobs -rl | grep -v " $PID_LOG Running" | wc -l` != " 0 " ]]; do
85+ while [[ ` jobs -rl | grep -v " $PID_LOG Running" | wc -l` -ne 0 ]]; do
8686 sleep 1
8787 if [[ ! -z $3 && $( date +%s) -ge $(( $START_TIME + $TIMEOUT_PHASE * 20 + $3 )) ]]; then
8888 RETVAL=1
You can’t perform that action at this time.
0 commit comments