Skip to content

Commit 09e50c8

Browse files
pillotdavidrohr
authored andcommitted
changes for macOS
1 parent b93008e commit 09e50c8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

prodtests/full-system-test/run-workflow-on-inputlist.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [[ -z $1 || -z $2 ]]; then
77
exit 1
88
fi
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
1313
fi
@@ -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
3636
fi
@@ -82,7 +82,7 @@ if [[ "0$4" != "00" ]]; then
8282
fi
8383

8484
TIMEOUT_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

0 commit comments

Comments
 (0)