def _create_objects(self):
    self.build_modes = Modes.create_modes(BuildModes, self.build_modes)
    self.run_modes = Modes.create_modes(RunModes, self.run_modes)
    for en_build_mode in self.en_build_modes:
        build_mode_obj = Modes.find_mode(en_build_mode, self.build_modes)
        if (build_mode_obj is not None):
            self.build_opts.extend(build_mode_obj.build_opts)
            self.run_opts.extend(build_mode_obj.run_opts)
        else:
            log.error('Mode "%s" enabled on the the command line is not defined', en_build_mode)
            sys.exit(1)
    for en_run_mode in self.en_run_modes:
        run_mode_obj = Modes.find_mode(en_run_mode, self.run_modes)
        if (run_mode_obj is not None):
            self.run_opts.extend(run_mode_obj.run_opts)
        else:
            log.error('Mode "%s" enabled on the the command line is not defined', en_run_mode)
            sys.exit(1)
    tests = Tests.create_tests(getattr(self, 'tests'), self)
    setattr(self, 'tests', tests)
    if (self.testplan != ''):
        self.testplan = testplan_utils.parse_testplan(self.testplan)
        self.regressions.extend(self.testplan.get_milestone_regressions())
    regressions = Regressions.create_regressions(getattr(self, 'regressions'), self, tests)
    setattr(self, 'regressions', regressions)
def _create_objects(self):
    self.build_modes = Modes.create_modes(BuildModes, self.build_modes)
    self.run_modes = Modes.create_modes(RunModes, self.run_modes)
    for en_build_mode in self.en_build_modes:
        build_mode_obj = Modes.find_mode(en_build_mode, self.build_modes)
        if (build_mode_obj is not None):
            self.build_opts.extend(build_mode_obj.build_opts)
            self.run_opts.extend(build_mode_obj.run_opts)
        else:
            log.error('Mode "%s" enabled on the the command line is not defined', en_build_mode)
            sys.exit(1)
    for en_run_mode in self.en_run_modes:
        run_mode_obj = Modes.find_mode(en_run_mode, self.run_modes)
        if (run_mode_obj is not None):
            self.run_opts.extend(run_mode_obj.run_opts)
        else:
            log.error('Mode "%s" enabled on the the command line is not defined', en_run_mode)
            sys.exit(1)
    tests = Tests.create_tests(getattr(self, 'tests'), self)
    setattr(self, 'tests', tests)
    if (self.testplan != ):
        self.testplan = testplan_utils.parse_testplan(self.testplan)
        self.regressions.extend(self.testplan.get_milestone_regressions())
    regressions = Regressions.create_regressions(getattr(self, 'regressions'), self, tests)
    setattr(self, 'regressions', regressions)