Skip to content

Commit d86e950

Browse files
committed
Merge remote-tracking branch 'origin/v9-minor'
2 parents 3fd3ce7 + c7600a7 commit d86e950

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

Diff for: check/run.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ function cleanup {
7070
# ensure TMPFILE is deleted and results are copied when exiting (normally or due to abort/interrupt)
7171
trap cleanup EXIT
7272

73-
# check if the scripts runs a *.zib.de host
74-
if $(hostname -f | grep -q zib.de)
73+
# check if the scripts runs a *.zib.de Linux host
74+
if $(hostname -f | grep -q zib.de) && [ $(uname) == Linux ]
7575
then
7676
# access optimi once to force a mount
7777
OPTIMIFILE=/data/optimi/optimi/kombadon/IP/miplib2003/10teams.mps.gz

Diff for: check/run_fscip.sh

+14-6
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,16 @@ SETFILE="${TMPDIR}/${BASENAME}.prm"
4848
SCIPSETFILE="${TMPDIR}/${BASENAME}.set"
4949
TMPFILE="${TMPDIR}/${BASENAME}.tmp"
5050

51-
SETTINGS="${SOLVERPATH}/../../ug/settings/${SETNAME}.prm"
52-
SCIPSETTINGS="${SOLVERPATH}/../../ug/settings/${SETNAME}.set"
51+
SETTINGS="${SOLVERPATH}/../settings/${SETNAME}.prm"
52+
if test ! -e "${SETTINGS}"
53+
then
54+
SETTINGS="${SOLVERPATH}/../../ug/settings/${SETNAME}.prm"
55+
fi
56+
SCIPSETTINGS="${SOLVERPATH}/../settings/${SETNAME}.set"
57+
if test ! -e "${SCIPSETTINGS}"
58+
then
59+
SCIPSETTINGS="${SOLVERPATH}/../../ug/settings/${SETNAME}.set"
60+
fi
5361

5462
uname -a > "${OUTFILE}"
5563
uname -a > "${ERRFILE}"
@@ -83,22 +91,22 @@ function cleanup {
8391
# ensure TMPFILE is deleted and results are copied when exiting (normally or due to abort/interrupt)
8492
trap cleanup EXIT
8593

86-
# check if the scripts runs a *.zib.de host
87-
if $(hostname -f | grep -q zib.de)
94+
# check if the scripts runs a *.zib.de Linux host
95+
if $(hostname -f | grep -q zib.de) && [ $(uname) == Linux ]
8896
then
8997
# access optimi once to force a mount
9098
OPTIMIFILE=/data/optimi/optimi/kombadon/IP/miplib2003/10teams.mps.gz
9199
ls $OPTIMIFILE >/dev/null 2>&1
92100

93-
# check if /optimi is mounted
101+
# check if optimi is mounted
94102
MOUNTED=0
95103

96104
# count number of fails and abort after 10 min to avoid an endless loop
97105
FAILED=0
98106

99107
while [ "${MOUNTED}" -ne 1 ]
100108
do
101-
# stop if the system does not mount /optimi for ~10 minutes
109+
# stop if the system does not mount optimi for ~10 minutes
102110
if [ "${FAILED}" -eq 600 ]
103111
then
104112
exit 1

0 commit comments

Comments
 (0)