|
74 | 74 | if [[ -z "$DETCONFIG" ]]; then |
75 | 75 | if [[ -z "ALIEN_JDL_DETCONFIG" ]]; then |
76 | 76 | echo "nothing set the detector configuration to use, exiting" |
77 | | - return 4 |
| 77 | + exit 4 |
78 | 78 | else |
79 | 79 | DETCONFIG="$ALIEN_JDL_DETCONFIG" |
80 | 80 | fi |
81 | 81 | fi |
82 | 82 |
|
83 | 83 | if [[ -z $RUNNUMBER ]] || [[ -z $YEAR ]] || [[ -z $PERIOD ]] || [[ -z $DETCONFIG ]] || [[ -z $BEAMTYPE ]] || [[ -z $PASS ]]; then |
84 | 84 | echo "check env variables we need RUNNUMBER (--> $RUNNUMBER), YEAR (--> $YEAR), PERIOD (--> $PERIOD), DETCONFIG (--> $DETCONFIG), BEAMTYPE (--> $BEAMTYPE), PASS (--> $PASS)" |
85 | | - return 3 |
| 85 | + exit 3 |
86 | 86 | fi |
87 | 87 |
|
88 | 88 | echo "processing run $RUNNUMBER, from year $YEAR and period $PERIOD with beamtype $BEAMTYPE, pass $PASS. Detector config will be $DETCONFIG" |
89 | 89 |
|
90 | 90 | ###if [[ $MODE == "remote" ]]; then |
91 | 91 | # common archive |
92 | 92 | if [[ ! -f commonInput.tgz ]]; then |
93 | | - echo "No commonInput.tgz found returning" |
94 | | - return 2 |
| 93 | + echo "No commonInput.tgz found exiting" |
| 94 | + exit 2 |
95 | 95 | fi |
96 | 96 | # run specific archive |
97 | 97 | if [[ $DETCONFIG == "muon" ]] || [[ $DETCONFIG == "centralBarrel" ]]; then |
98 | 98 | if [[ ! -f runInput_$RUNNUMBER.tgz ]]; then |
99 | | - echo "No runInput_$RUNNUMBER.tgz found returning" |
100 | | - return 2 |
| 99 | + echo "No runInput_$RUNNUMBER.tgz found exiting" |
| 100 | + exit 2 |
101 | 101 | else |
102 | 102 | tar -xzvf runInput_$RUNNUMBER.tgz |
103 | 103 | fi |
104 | 104 | fi |
105 | 105 | tar -xzvf commonInput.tgz |
106 | | - ln -s o2sim_geometry.root o2sim_geometry-aligned.root |
107 | 106 |
|
108 | 107 | ###fi |
109 | 108 |
|
|
128 | 127 | echo "No setenv_extra_ctf_recreation_$DETCONFIG for $ALIEN_JDL_LPMANCHORYEAR in O2DPG" |
129 | 128 | echo " Processing cannot start" |
130 | 129 | echo "*********************************************************************************************************" |
131 | | - return 5 |
| 130 | + exit 5 |
132 | 131 | fi |
133 | 132 | fi |
134 | 133 |
|
|
148 | 147 | fi |
149 | 148 |
|
150 | 149 | ln -sf $O2DPG_ROOT/DATA/common/setenv.sh |
| 150 | +ln -sf $O2DPG_ROOT/DATA/common/getCommonArgs.sh |
| 151 | +ln -sf $O2_ROOT/prodtests/full-system-test/workflow-setup.sh |
151 | 152 |
|
152 | 153 | export TFDELAY=0.1 |
153 | 154 | if [[ $DETCONFIG == "centralBarrel" ]]; then |
|
0 commit comments