Revision ee89df69 snf-tools/synnefo_tools/burnin/__init__.py
b/snf-tools/synnefo_tools/burnin/__init__.py | ||
---|---|---|
182 | 182 |
parser.add_option( |
183 | 183 |
"--quiet", action="store_true", |
184 | 184 |
default=False, dest="quiet", |
185 |
help="Turn off log output")
|
|
185 |
help="Turn off logging (both console and file logging)")
|
|
186 | 186 |
parser.add_option( |
187 | 187 |
"--final-report-only", action="store_true", |
188 | 188 |
default=False, dest="final_report", |
... | ... | |
203 | 203 |
if opts.delete_stale: |
204 | 204 |
opts.show_stale = True |
205 | 205 |
|
206 |
# `quiet' implies not `final_report' |
|
207 |
if opts.quiet: |
|
208 |
opts.final_report = False |
|
209 |
# `final_report' implies `quiet' |
|
206 |
# log_level: |
|
207 |
# 0 -> log to console and file |
|
208 |
# 1 -> log to file and output the results in console |
|
209 |
# 2 -> don't log |
|
210 |
opts.log_level = 0 |
|
210 | 211 |
if opts.final_report: |
211 |
opts.quiet = True |
|
212 |
opts.log_level = 1 |
|
213 |
if opts.quiet: |
|
214 |
opts.log_level = 2 |
|
212 | 215 |
|
213 | 216 |
# Check `--set-tests' and `--exclude-tests' options |
214 | 217 |
if opts.tests != "all" and \ |
... | ... | |
261 | 264 |
|
262 | 265 |
# Run burnin |
263 | 266 |
# The return value denotes the success status |
264 |
return common.run_burnin(testsuites, failfast=failfast, |
|
265 |
final_report=opts.final_report) |
|
267 |
return common.run_burnin(testsuites, failfast=failfast) |
|
266 | 268 |
|
267 | 269 |
|
268 | 270 |
if __name__ == "__main__": |
Also available in: Unified diff