Revision 0c1833c8 snf-tools/synnefo_tools/burnin/common.py

b/snf-tools/synnefo_tools/burnin/common.py
173 173
    # Initialize logger
174 174
    global logger  # Using global statement. pylint: disable-msg=C0103,W0603
175 175
    logger = Log(opts.log_folder, verbose=opts.verbose,
176
                 use_colors=opts.use_colors, in_parallel=False)
176
                 use_colors=opts.use_colors, in_parallel=False,
177
                 quiet=opts.quiet)
177 178

  
178 179
    # Initialize clients
179 180
    Clients.auth_url = opts.auth_url
......
194 195

  
195 196
# --------------------------------------------------------------------
196 197
# Run Burnin
197
def run(testsuites):
198
def run(testsuites, failfast=False, final_report=False):
198 199
    """Run burnin testsuites"""
199 200
    global logger  # Using global. pylint: disable-msg=C0103,W0603,W0602
200 201

  
......
204 205
        results = tsuite.run(BurninTestResult())
205 206
        success = success and \
206 207
            was_successful(tcase.__name__, results.wasSuccessful())
208
        if failfast and not success:
209
            break
207 210

  
211
    # Are we going to print final report?
212
    if final_report:
213
        logger.print_logfile_to_stdout()
208 214
    # Clean up our logger
209 215
    del(logger)
210 216

  

Also available in: Unified diff