mirror of
https://github.com/clearml/wexpect-venv
synced 2025-01-31 10:57:07 +00:00
minimal 11
This commit is contained in:
parent
fbbfafd214
commit
4fc226b3d9
15
dump_logs.py
15
dump_logs.py
@ -1,9 +1,21 @@
|
|||||||
import os
|
import os
|
||||||
import glob
|
import glob
|
||||||
|
|
||||||
|
read_files = glob.glob("*.log")
|
||||||
|
|
||||||
|
for f in read_files:
|
||||||
|
print()
|
||||||
|
print(f)
|
||||||
|
print()
|
||||||
|
with open(f, "r") as infile:
|
||||||
|
print(infile.read())
|
||||||
|
|
||||||
read_files = glob.glob(".wlog/*.log")
|
read_files = glob.glob(".wlog/*.log")
|
||||||
|
|
||||||
for f in read_files:
|
for f in read_files:
|
||||||
|
print()
|
||||||
|
print(f)
|
||||||
|
print()
|
||||||
with open(f, "r") as infile:
|
with open(f, "r") as infile:
|
||||||
print(infile.read())
|
print(infile.read())
|
||||||
|
|
||||||
@ -11,5 +23,8 @@ for f in read_files:
|
|||||||
read_files = glob.glob("tests/.wlog/*.log")
|
read_files = glob.glob("tests/.wlog/*.log")
|
||||||
|
|
||||||
for f in read_files:
|
for f in read_files:
|
||||||
|
print()
|
||||||
|
print(f)
|
||||||
|
print()
|
||||||
with open(f, "rb") as infile:
|
with open(f, "rb") as infile:
|
||||||
print(infile.read())
|
print(infile.read())
|
Loading…
Reference in New Issue
Block a user