Lines Matching refs:child

123 def exit_1(msg, child=None):
126 if child:
127 stdout = decode(child.stdout)
132 stderr = decode(child.stderr)
208 child = run(command, stderr=subprocess.PIPE, stdout=subprocess.PIPE)
212 if not (contains(pattern, decode(child.stdout).splitlines()) or
213 contains(pattern, decode(child.stderr).splitlines())):
214 exit_1("Error: did not find '{}' in `bindgen`'s output".format(args.bindgen_grep), child)
216 if args.expect_bindgen_fail and child.returncode == 0:
217 exit_1("Error: expected running `bindgen` to fail, but it didn't", child)
219 if not args.expect_bindgen_fail and child.returncode != 0:
220 exit_1("Error: running `bindgen` failed", child)
237 child = run(
244 if not (contains(pattern, decode(child.stdout).splitlines()) or
245 contains(pattern, decode(child.stderr).splitlines())):
246 exit_1("Error: did not find '{}' in `rustc`'s output".format(args.rustc_grep), child)
248 if args.expect_compile_fail and child.returncode == 0:
249 exit_1("Error: expected running `rustc` on the emitted bindings to fail, but it didn't", child)
251 if not args.expect_compile_fail and child.returncode != 0:
252 exit_1("Error: running `rustc` on the emitted bindings failed", child)
255 child = run(
262 if not (contains(pattern, decode(child.stdout).splitlines()) or
263 contains(pattern, decode(child.stderr).splitlines())):
264 exit_1("Error: did not find '{}' in the compiled bindings' layout tests' output".format(args.layout_tests_grep), child)
266 if args.expect_layout_tests_fail and child.returncode == 0:
267 exit_1("Error: expected running the compiled bindings' layout tests to fail, but it didn't", child)
269 if not args.expect_layout_tests_fail and child.returncode != 0:
270 exit_1("Error: running the compiled bindings' layout tests failed", child)