Lines Matching refs:output

22 def CheckBuildId(output) -> bool:

23 ret = re.search("BuildId: (.+?) [\d].[\d].[\d].[\d]", output)
27 def CheckOsVersion(output) -> bool:
28 ret = re.search("OsVersion: (.+?)[\d].[\d].[\d].[\d]", output)
32 def CheckProcVersion(output) -> bool:
33 ret = re.search("/proc/version\n\n([^\n]+\n)+\n", output)
37 def CheckCmdline(output) -> bool:
38 ret = re.search("/proc/cmdline\n\n([^\n]+\n)+\n", output)
42 def CheckWakeUpSource(output) -> bool:
43 ret = re.search("/sys/kernel/debug/wakeup_sources\n\n([^\n]+\n){4,}", output)
47 def CheckUpTime(output) -> bool:
48 ret = re.search("cmd is: uptime -p\n(\n[^\n]+)\n", output)
52 def CheckPrintEnv(output) -> bool:
53 ret = re.search("cmd is: printenv\n\n([^\n]+){4,}\n", output)
57 def CheckProcModules(output) -> bool:
58 ret = re.search("/proc/modules\n\n([^\n]+)\n", output)
62 def CheckLsmod(output) -> bool:
63 ret = re.search("cmd is: lsmod\n\n([^\n]+)\n", output)
67 def CheckSlabinfo(output) -> bool:
68 ret = re.search("/proc/slabinfo\n\n([^\n]+){4,}\n", output)
72 def CheckZoneinfo(output) -> bool:
73 ret = re.search("/proc/zoneinfo\n\n([^\n]+){4,}\n", output)
77 def CheckVmstat(output) -> bool:
78 ret = re.search("/proc/vmstat\n\n([^\n]+)\n", output)
82 def CheckVmallocinfo(output) -> bool:
83 ret = re.search("/proc/vmallocinfo\n\n([^\n]+)\n", output)
87 def CheckHidumperHelpOutput(output):
88 return "usage:" in output
95 CheckCmd("hidumper -h", lambda output : "usage:" in output)
97 CheckCmdRedirect("hidumper -h", lambda output : "usage:" in output)
101 CheckFunc = lambda output : all([check(output) for check in [CheckBuildId, CheckOsVersion, CheckProcVersion,
114 CheckFunc = lambda output : all([check(output) for check in [CheckBuildId, CheckOsVersion, CheckProcVersion, CheckCmdline, CheckUpTime]])
125 CheckFunc = lambda output : all([check(output) for check in [CheckPrintEnv, CheckLsmod, CheckSlabinfo, CheckZoneinfo, CheckVmstat, CheckVmallocinfo]])
136 CheckFunc = lambda output : "faultlog" in output
147 output = subprocess.check_output(command, shell=True, encoding="utf-8", text=True)
148 assert "option pid missed." in output
151 output = subprocess.check_output(command, shell=True, encoding="utf-8", text=True)
152 assert "usage:" in output