Skip to content

Commit

Permalink
Update winfstests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewc12 committed Aug 4, 2023
1 parent 9842688 commit 42ace0d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion contrib/windows/tests/winfstests.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,19 @@ def main():

#out = " ".join([str(test),
# ret.stdout.decode().splitlines()[-1]])
out = str(test) + "\n" + "\n".join(ret.stdout.decode().splitlines())
#out = str(test) + "\n" + "\n".join(ret.stdout.decode().splitlines())
total = 0
ok = 0
notok = 0
for i in ret.stdout.decode().splitlines():
if i.startswith('ok'):
total += 1
ok += 1
if i.startswith('not ok'):
total += 1
notok += 1
out = " ".join([str(test),
ok, "/", total)

print(out)
log_file.write(out)
Expand Down

0 comments on commit 42ace0d

Please sign in to comment.