Megatest

Diff
Login

Differences From Artifact [a0de763cc0]:

To Artifact [41dcc3da03]:


13
14
15
16
17
18
19


20
21
22
23
24
25
26
# 
stepname=$1;shift
command=$*

allstatus=99
runstatus=99
logpropstatus=99



# if a logpro file exists then use it otherwise just run the command, nb// was using 2>&1
if [ -e ${stepname}.logpro ];then
   $command 2>&1| logpro ${stepname}.logpro ${stepname}.html &> ${stepname}.log 
   allstatus=(${PIPESTATUS[0]} ${PIPESTATUS[1]})
   runstatus=${allstatus[0]}
   logprostatus=${allstatus[1]}







>
>







13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 
stepname=$1;shift
command=$*

allstatus=99
runstatus=99
logpropstatus=99

# source the environment from the previous step if it exists

# if a logpro file exists then use it otherwise just run the command, nb// was using 2>&1
if [ -e ${stepname}.logpro ];then
   $command 2>&1| logpro ${stepname}.logpro ${stepname}.html &> ${stepname}.log 
   allstatus=(${PIPESTATUS[0]} ${PIPESTATUS[1]})
   runstatus=${allstatus[0]}
   logprostatus=${allstatus[1]}