How to use del_last_configuration method in avocado

Best Python code snippet using avocado_python

job.py

Source:job.py Github

copy

Full Screen

...402 def cleanup(self):403 """404 Cleanup the temporary job handlers (dirs, global setting, ...)405 """406 output.del_last_configuration()407 self.__stop_job_logging()408 if not self.__keep_tmpdir and os.path.exists(self.tmpdir):409 shutil.rmtree(self.tmpdir)410 cleanup_conditionals = (411 self.config.get('run.dry_run.enabled'),412 not self.config.get('run.dry_run.no_cleanup')413 )414 if all(cleanup_conditionals):415 # Also clean up temp base directory created because of the dry-run416 base_logdir = self.config.get('run.results_dir')417 if base_logdir is not None:418 try:419 FileNotFoundError420 except NameError:...

Full Screen

Full Screen

output.py

Source:output.py Github

copy

Full Screen

...318 STD_OUTPUT.fake_outputs()319 add_log_handler("", MemStreamHandler, None, logging.DEBUG)320 logging.root.level = logging.DEBUG321CONFIG = []322def del_last_configuration():323 if len(CONFIG) == 1:324 return325 configuration = CONFIG.pop()326 for logger_name in configuration:327 disable_log_handler(logger_name)328 configuration = CONFIG[-1]329 for logger_name, handlers in configuration.items():330 logger = logging.getLogger(logger_name)331 for handler in handlers:332 logger.addHandler(handler)333def reconfigure(args):334 """335 Adjust logging handlers accordingly to app args and re-log messages.336 """...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run avocado automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful