def main(): options, args = parser.parse_args() args = cmd_parser.parse_args(args) # Check for a control file if not in prebuild mode. if len(args) != 1 and options.client_test_setup is None: print "Missing control file!" usage() drop_caches = global_config.global_config.get_config_value('CLIENT', 'drop_caches', type=bool, default=True) if options.client_test_setup: from autotest_lib.client.bin import setup_job exit_code = 0 try: setup_job.setup_tests(options) except Exception: exit_code = 1 sys.exit(exit_code) # JOB: run the specified job control file. job.runjob(os.path.realpath(args[0]), drop_caches, options)
def main(self): self.parse_cmdline() drop_caches = global_config.global_config.get_config_value( 'CLIENT', 'drop_caches', type=bool, default=True) if self.options.client_test_setup: from autotest_lib.client.bin import setup_job exit_code = 0 try: setup_job.setup_tests(self.options) except Exception: exit_code = 1 sys.exit(exit_code) # JOB: run the specified job control file. job.runjob(os.path.realpath(self.args[0]), drop_caches, self.options)
def main(self): self.parse_cmdline() drop_caches = global_config.global_config.get_config_value('CLIENT', 'drop_caches', type=bool, default=True) if self.options.client_test_setup: from autotest_lib.client.bin import setup_job exit_code = 0 try: setup_job.setup_tests(self.options) except Exception: exit_code = 1 sys.exit(exit_code) # JOB: run the specified job control file. job.runjob(os.path.realpath(self.args[0]), drop_caches, self.options)