Lines Matching full:request

78 		 request: KunitConfigRequest) -> KunitResult:
82 success = linux.build_reconfig(request.build_dir, request.make_options)
88 request: KunitBuildRequest) -> KunitResult:
92 success = linux.build_kernel(request.jobs,
93 request.build_dir,
94 request.make_options)
100 request: KunitBuildRequest) -> KunitResult:
101 config_result = config_tests(linux, request)
105 return build_tests(linux, request)
107 def _list_tests(linux: kunit_kernel.LinuxSourceTree, request: KunitExecRequest) -> List[str]:
110 if request.kernel_args:
111 args.extend(request.kernel_args)
114 timeout=request.timeout,
115 filter_glob=request.filter_glob,
116 filter=request.filter,
117 filter_action=request.filter_action,
118 build_dir=request.build_dir)
126 def _list_tests_attr(linux: kunit_kernel.LinuxSourceTree, request: KunitExecRequest) -> Iterable[st…
129 if request.kernel_args:
130 args.extend(request.kernel_args)
133 timeout=request.timeout,
134 filter_glob=request.filter_glob,
135 filter=request.filter,
136 filter_action=request.filter_action,
137 build_dir=request.build_dir)
157 def exec_tests(linux: kunit_kernel.LinuxSourceTree, request: KunitExecRequest) -> KunitResult:
158 filter_globs = [request.filter_glob]
159 if request.list_tests:
160 output = _list_tests(linux, request)
164 if request.list_tests_attr:
165 attr_output = _list_tests_attr(linux, request)
169 if request.run_isolated:
170 tests = _list_tests(linux, request)
171 if request.run_isolated == 'test':
173 elif request.run_isolated == 'suite':
176 if '.' in request.filter_glob:
177 test_glob = request.filter_glob.split('.', maxsplit=2)[1]
180 …metadata = kunit_json.Metadata(arch=linux.arch(), build_dir=request.build_dir, def_config='kunit_d…
189 args=request.kernel_args,
190 timeout=request.timeout,
192 filter=request.filter,
193 filter_action=request.filter_action,
194 build_dir=request.build_dir)
196 _, test_result = parse_tests(request, metadata, run_result)
206 bd = request.build_dir
219 def parse_tests(request: KunitParseRequest, metadata: kunit_json.Metadata, input_data: Iterable[str…
222 if request.raw_output:
229 if request.raw_output == 'all':
231 elif request.raw_output == 'kunit':
243 if request.json:
247 if request.json == 'stdout':
250 with open(request.json, 'w') as f:
253 os.path.abspath(request.json))
261 request: KunitRequest) -> KunitResult:
264 config_result = config_tests(linux, request)
268 build_result = build_tests(linux, request)
272 exec_result = exec_tests(linux, request)
446 request = KunitRequest(build_dir=cli_args.build_dir,
459 result = run_tests(linux, request)
470 request = KunitConfigRequest(build_dir=cli_args.build_dir,
472 result = config_tests(linux, request)
482 request = KunitBuildRequest(build_dir=cli_args.build_dir,
485 result = config_and_build_tests(linux, request)
522 request = KunitParseRequest(raw_output=cli_args.raw_output,
524 result, _ = parse_tests(request, metadata, kunit_output)