tetst: test for checking return value
This commit is contained in:
parent
73265490f0
commit
87f50f01e4
|
@ -189,7 +189,7 @@ if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
stdout, stderr = command_executor.execute(cmd)
|
stdout, stderr = command_executor.execute(cmd)
|
||||||
#if "error" in stderr:
|
#if "error" in stderr:
|
||||||
# print(stderr)
|
print(stderr)
|
||||||
lines = stdout.split("\n")
|
lines = stdout.split("\n")
|
||||||
if lines[-2].endswith("matches.") or lines[-2].endswith("match."):
|
if lines[-2].endswith("matches.") or lines[-2].endswith("match."):
|
||||||
match_num = int(lines[-2].split(" ")[0])
|
match_num = int(lines[-2].split(" ")[0])
|
||||||
|
|
Loading…
Reference in New Issue