Lines Matching refs:output
25 def ParseSmapsOutput(output):
27 for line in output.split("\n"):
42 def CheckMemAddrss(output):
43 ret = re.search(r"\s([a-zA-Z0-9]{8,})\s", output)
47 def CheckPseft(output):
48 result = re.search("UID\s+PID\s+TID PPID TCNT STIME TTY\s+TIME CMD\n([^\n]+\n){1,}", output)
52 def CheckMountInfo(output):
53 result = re.search("/proc/\d+/mountinfo\n\n([^\n]+\n){4,}", output)
56 def CheckSmaps(output):
57 result = re.search(r"/proc/\d+/maps", output)
60 def CheckMemSmapsWithRoot(output):
61 memory_data = ParseSmapsOutput(output)
65 def CheckMemSmapsVWithRoot(output):
66 memory_data = ParseSmapsOutput(output)
67 return CheckSmapsTotalPss(memory_data) and CheckMemAddrss(output)
69 def CheckHelpOutput(output):
70 return "usage:" in output
72 def CheckNetCmd(output):
76 ret = all([item in output for item in cmds])
163 output = subprocess.check_output("hdc shell \"hidumper -h |grep mem\"", shell=True, text=True, encoding="utf-8")
164 assert "--mem [pid]" in output
169 output = subprocess.check_output("hdc shell \"hidumper -p 1\"", shell=True, text=True, encoding="utf-8")
170 assert "only support debug application" in output
178 output = subprocess.check_output("hdc shell ls -l /data/log/hidumper.log", shell=True).decode()
179 assert int(output.strip().split()[4]) > 0
188 output = subprocess.check_output("hdc shell ls -l /data/log/hidumper.log", shell=True).decode()
189 assert int(output.strip().split()[4]) > 0