~z-man/armagetronad/bugfarm-scripts

« back to all changes in this revision

Viewing changes to run_single

  • Committer: Manuel Moos
  • Date: 2009-03-02 12:06:32 UTC
  • Revision ID: z-man@users.sf.net-20090302120632-qqt95ff3eraa7g1m
Added safety net for crashes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
 
1
#!/bin/bash
2
2
 
3
3
# runs the server in loop, core files
4
4
 
11
11
  $(dirname $0)/elimination > var/${stamp}.scriptlog 2>&1 &
12
12
fi
13
13
 
 
14
function wrapper()
 
15
{
 
16
  ./armagetronad-dedicated $* || echo BUG: crash
 
17
}
 
18
 
14
19
# run server
15
20
cp var/bzrlog var/bzrlog.now
16
 
./armagetronad-dedicated --record var/${stamp}.aarec | tee var/${stamp}.log
 
21
wrapper --record var/${stamp}.aarec | tee var/${stamp}.log
17
22
 
18
23
# bug?
19
24
if grep ":.*BUG" var/${stamp}.log; then