Lines Matching refs:child
15 def runTest(child, test): argument
16 child.send(test["Sequence"])
19 child.expect(test["Result"], 1)
33 def runHistoryTest(child): argument
35 child.sendline(cmdline_test_data.CMD_GET_BUFSIZE)
36 child.expect("History buffer size: \\d+", timeout=1)
37 history_size = int(child.after[len(cmdline_test_data.BUFSIZE_TEMPLATE):])
43 child.send("1" + str(i).zfill(8) + cmdline_test_data.ENTER)
45 child.expect(str(i + 100000000), timeout=1)
48 child.send(cmdline_test_data.UP * (i + 2) + cmdline_test_data.ENTER)
49 child.expect("100000000", timeout=1)
62 child = pexpect.spawn(test_app_path) variable
68 runTest(child, test)
72 print(child)
76 child = pexpect.spawn(test_app_path) variable
80 runHistoryTest(child)
84 print(child)
86 child.close()