mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-27 13:45:27 -04:00
ugly hack to get sleep_loopqa.sh to digest 6 or 7 args
This commit is contained in:
parent
1c23e5dbb0
commit
9f11b381ef
2 changed files with 9 additions and 5 deletions
|
|
@ -40,4 +40,5 @@ after_failure:
|
|||
- grep d= $TRAVIS_BUILD_DIR/QA/testoutputs/dft_he2+.out
|
||||
- grep @ $TRAVIS_BUILD_DIR/QA/testoutputs/h2o_opt.out
|
||||
- cat $TRAVIS_BUILD_DIR/QA/testoutputs/dft_he2+.out
|
||||
- cat $TRAVIS_BUILD_DIR/QA/testoutputs/prop_mep_gcube.out
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,14 @@
|
|||
#!/bin/bash
|
||||
#echo "starting sleep_loop.sh for command: " ${@}
|
||||
#"${@}" &
|
||||
outfile=../testoutputs/"$6"
|
||||
#echo "output file is "$outfile
|
||||
$1 $2 $3 $4 $5 >& $outfile &
|
||||
narg="${#}"
|
||||
if [ "$narg" -eq 7 ]; then
|
||||
outfile=../testoutputs/$7
|
||||
$1 $2 $3 $4 $5 $6 >& $outfile &
|
||||
else
|
||||
outfile=../testoutputs/$6
|
||||
$1 $2 $3 $4 $5 >& $outfile &
|
||||
fi
|
||||
pid=$!
|
||||
echo "sleep_loopqa got pid" $pid
|
||||
ps -p "$pid" > /dev/null
|
||||
|
|
@ -19,8 +24,6 @@ else
|
|||
if [[ "$ps_exit" -eq 0 ]]; then
|
||||
echo ' ==== ' `date` ' ==== '
|
||||
tail -1 $outfile
|
||||
# elif wait "$pid"; then
|
||||
# echo "ps_exit code" $ps_exit
|
||||
else
|
||||
break # exit loop.
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue