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:
Martin Sehnoutka 2020-06-26 11:06:09 +02:00 committed by Tom Gundersen
parent 09208c9237
commit a38ee2e7a7

View file

@ -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