Revision b03be261

b/snf-tools/README
23 23
------------------
24 24
snf-burnin --help
25 25

  
26
==========
27
Log files
28
==========
29

  
30
In each run, snf-burnin stores log files in the folder defined in the --log-folder parameter (default is /var/log/burnin) under the folder with the timestamp of the snf-burnin-run and the image used for it. The name prefixes of the log files are:
31

  
32
- details: Showing the complete log of snf-burnin run.
33
- error: Showing the testcases that encountered a runtime error.
34
- failed: Showing the testcases that encountered a failure.
35

  
26 36

  
27 37
Example scripts
28 38
-----------------
29 39
Under /snf-tools/conf/ you can find example scripts for automating snf-burnin testing using cron.
30 40

  
31 41
- **snf-burnin-run.sh** runs snf-burnin with the given parameters, deletes stale instances (servers, networks) from old runs and delete logs older than a week. It aborts if snf-burnin runs for longer than expected. 
42
  
43
  - **Usage**: ./snf-burnin-run.sh TOKEN IMAGE-ID LOG_FOLDER
44

  
32 45
- **snf-burnin-output.sh** checks for failed snf-burnin tests the last 30 minutes in a given log folder. Exit status is 0 if no failures where encountered, else exit status is 1.
46
  
47
  - **Usage**: ./snf-burnin-output.sh LOG_FOLDER
b/snf-tools/conf/snf-burnin-run.sh
4 4
#Starts an a snf-burnin test, deletes stale instances and archives old logs.
5 5
#It aborts if snf-burnin runs for longer than expected.
6 6

  
7
#Usage: ./snf-burnin.cron.example TOKEN IMAGE-ID LOG-FOLDER
7
#Usage: ./snf-burnin-run.sh TOKEN IMAGE-ID LOG-FOLDER
8 8

  
9 9
timeout 28m snf-burnin --token="$1" --image-id="$2" --action-timeout 120 --log-folder "$3"
10 10
snf-burnin --token="$1" --delete-stale

Also available in: Unified diff