Lines Matching refs:pb

799     pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
803 pb.log_info(filename, inline_logs)
859 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
866 pb.log_info_file(None)
1522 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
1523 pb.options = mock.Mock()
1524 pb.options.coverage = options_coverage
1525 pb.options.prep_artifacts_for_testing = options_prep_artifacts
1526 pb.options.runtime_artifact_cleanup = options_runtime_artifacts
1527 pb.options.cmake_only = options_cmake_only
1529 pb.cmake = mock.Mock(return_value=cmake_res)
1530 pb.build = mock.Mock(return_value=build_res)
1531 pb.determine_testcases = mock.Mock(side_effect=mock_determine_testcases)
1533 pb.report_out = mock.Mock()
1534 pb.cleanup_artifacts = mock.Mock()
1535 pb.cleanup_device_testing_artifacts = mock.Mock()
1536 pb.run = mock.Mock()
1537 pb.gather_metrics = mock.Mock(return_value=metrics_res)
1548 pb.process(pipeline_mock, done_mock, message, lock_mock, results_mock)
1555 assert pb.instance.status == expected_status
1556 assert pb.instance.reason == expected_reason
1560 pb.instance.add_missing_case_status.assert_called_with(*expected_missing)
1664 pb = ProjectBuilder(instance_mock, mocked_env, mocked_jobserver)
1668 pb.determine_testcases(results_mock)
1670 pb.instance.add_testcase.assert_has_calls(
1673 pb.instance.testsuite.add_testcase.assert_has_calls(
1734 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
1735 pb.options = mock.Mock(runtime_artifact_cleanup=runtime_artifact_cleanup)
1737 pb.cleanup_artifacts(additional_keep)
1756 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
1757 pb._get_binaries = mock.Mock(return_value=bins)
1758 pb.cleanup_artifacts = mock.Mock()
1759 pb._sanitize_files = mock.Mock()
1761 pb.cleanup_device_testing_artifacts()
1765 pb.cleanup_artifacts.assert_called_once_with(
1769 pb._sanitize_files.assert_called_once()
1811 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
1812 pb._get_binaries_from_runners = mock.Mock(return_value=runner_binaries)
1814 bins = pb._get_binaries()
1863 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
1869 bins = pb._get_binaries_from_runners(domain)
1871 bins = pb._get_binaries_from_runners()
1881 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
1882 pb._sanitize_runners_file = mock.Mock()
1883 pb._sanitize_zephyr_base_from_files = mock.Mock()
1885 pb._sanitize_files()
1887 pb._sanitize_runners_file.assert_called_once()
1888 pb._sanitize_zephyr_base_from_files.assert_called_once()
1926 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
1931 pb._sanitize_runners_file()
1988 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
1994 pb._sanitize_zephyr_base_from_files()
2089 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
2090 pb.options.verbose = verbose
2091 pb.options.cmake_only = cmake_only
2092 pb.options.seed = 123
2093 pb.log_info_file = mock.Mock()
2135 pb.report_out(results_mock)
2202 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
2203 pb.build_dir = 'build_dir'
2204 pb.testsuite.extra_args = ['some', 'args']
2205 pb.testsuite.extra_conf_files = ['some', 'files1']
2206 pb.testsuite.extra_overlay_confs = ['some', 'files2']
2207 pb.testsuite.extra_dtc_overlay_files = ['some', 'files3']
2208 pb.options.extra_args = ['other', 'args']
2209 pb.cmake_assemble_args = mock.Mock(return_value=['dummy'])
2211 pb.run_cmake = mock.Mock(return_value=cmake_res_mock)
2213 res = pb.cmake(['dummy filter'])
2216 pb.cmake_assemble_args.assert_called_once_with(
2217 pb.testsuite.extra_args,
2218 pb.instance.handler,
2219 pb.testsuite.extra_conf_files,
2220 pb.testsuite.extra_overlay_confs,
2221 pb.testsuite.extra_dtc_overlay_files,
2222 pb.options.extra_args,
2223 pb.instance.build_dir
2225 pb.run_cmake.assert_called_once_with(['dummy'], ['dummy filter'])
2233 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
2235 pb.build_dir = 'build_dir'
2236 pb.run_build = mock.Mock(return_value={'dummy': 'dummy'})
2238 res = pb.build()
2240 pb.run_build.assert_called_once_with(['--build', 'build_dir'])
2335 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
2336 pb.options.extra_test_args = ['dummy_arg1', 'dummy_arg2']
2337 pb.duts = ['another dut']
2338 pb.options.seed = seed
2339 pb.defconfig = defconfig
2340 pb.parse_generated = mock.Mock()
2344 pb.run()
2347 assert pb.instance.handler.duts == ['another dut']
2350 pb.parse_generated.assert_called_once()
2353 assert pb.instance.handler.seed == seed
2356 assert pb.instance.handler.extra_test_args == ['dummy_arg1',
2363 pb.instance.handler.handle.assert_called_once_with(harness_mock)
2389 pb = ProjectBuilder(instance_mock, env_mock, mocked_jobserver)
2390 pb.options.enable_size_report = enable_size_report
2391 pb.options.create_rom_ram_report = False
2392 pb.options.cmake_only = cmake_only
2393 pb.calc_size = mock.Mock()
2395 pb.gather_metrics(instance_mock)
2398 pb.calc_size.assert_called_once()
2798 return_value=mock.Mock()) as pb:
2801 assert len(pb().process.call_args_list) == 5