Revision 0c1833c8 snf-tools/synnefo_tools/burnin/__init__.py
b/snf-tools/synnefo_tools/burnin/__init__.py | ||
---|---|---|
161 | 161 |
"--no-colors", action="store_false", |
162 | 162 |
default=True, dest="use_colors", |
163 | 163 |
help="Disable colorful output") |
164 |
parser.add_option( |
|
165 |
"--quiet", action="store_true", |
|
166 |
default=False, dest="quiet", |
|
167 |
help="Turn off log output") |
|
168 |
parser.add_option( |
|
169 |
"--final-report-only", action="store_true", |
|
170 |
default=False, dest="final_report", |
|
171 |
help="Turn off log output and only print the contents of the log " |
|
172 |
"file at the end of the test. Useful when burnin is used in " |
|
173 |
"script files and it's output is to be sent using email") |
|
164 | 174 |
|
165 | 175 |
(opts, args) = parser.parse_args(args) |
166 | 176 |
|
... | ... | |
171 | 181 |
show_version() |
172 | 182 |
sys.exit(0) |
173 | 183 |
|
184 |
# `delete_stale' implies `show_stale' |
|
185 |
if opts.delete_stale: |
|
186 |
opts.show_stale = True |
|
187 |
|
|
188 |
# `quiet' implies not `final_report' |
|
189 |
if opts.quiet: |
|
190 |
opts.final_report = False |
|
191 |
# `final_report' implies `quiet' |
|
192 |
if opts.final_report: |
|
193 |
opts.quiet = True |
|
194 |
|
|
174 | 195 |
# `token' is mandatory |
175 | 196 |
mandatory_argument(opts.token, "--token") |
176 | 197 |
# `auth_url' is mandatory |
... | ... | |
213 | 234 |
|
214 | 235 |
# Run burnin |
215 | 236 |
# The return value denotes the success status |
216 |
return common.run(testsuites) |
|
237 |
return common.run(testsuites, failfast=opts.failfast, |
|
238 |
final_report=opts.final_report) |
|
217 | 239 |
|
218 | 240 |
|
219 | 241 |
if __name__ == "__main__": |
Also available in: Unified diff