def make_context()

in uberpoet/multisuite.py [0:0]


    def make_context(self, log_dir, output_dir, test_build):
        self.cpu_logger = CPULogger()
        self.xcode_manager = XcodeManager()
        self.settings_state = SettingsState(output_dir)

        self.log_dir = log_dir
        self.output_dir = output_dir

        self.mock_output_dir = join(output_dir, 'apps', 'mockapp')
        self.mock_app_workspace = join(self.mock_output_dir, 'App', 'MockApp.xcworkspace')
        self.buckconfig_path = join(output_dir, '.buckconfig.local')

        self.sys_info_path = join(log_dir, 'system_info.txt')
        self.build_time_path = join(log_dir, 'build_times.txt')
        self.build_time_csv_path = join(log_dir, 'build_times.csv')
        self.build_trace_path = join(log_dir, 'build_traces')
        self.buck_path = '/apps/mockapp'
        self.app_buck_path = "/{}/App:MockApp".format(self.buck_path)

        has_dot = self.app_gen_options.dot_file_path and self.app_gen_options.dot_root_node_name
        if test_build:
            logging.info("Using test build settings")
            self.app_gen_options.lines_of_code = 100000
            self.wmo_modes = [False]
            self.type_list = [ModuleGenType.dot] if has_dot else [ModuleGenType.flat]
        else:
            self.wmo_modes = [True, False]
            self.type_list = ModuleGenType.enum_list()
            if not has_dot:
                logging.warning("Removing dot mock app type due to lack of dot file to read. "
                                "Specify one in the command line options.")
                self.type_list.remove(ModuleGenType.dot)