test-case-generators: fix printing of osbuild log
Writing to a file followed by reading it results in printing b'' unless we seek to the beginning. Fix it by calling seek.
This commit is contained in:
parent
09208c9237
commit
a38ee2e7a7
1 changed files with 1 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ def run_osbuild(manifest, store, output):
|
|||
encoding="utf-8",
|
||||
input=json.dumps(manifest))
|
||||
except:
|
||||
log.seek(0)
|
||||
print(log.read())
|
||||
raise
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue