From: Luke Kenneth Casson Leighton Date: Thu, 11 Nov 2021 09:40:33 +0000 (+0000) Subject: use append on expected state dump, not ideal but X-Git-Tag: sv_maxu_works-initial~749 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=10e0db2f4b1167a74289187a0ea745d2e537d906;p=openpower-isa.git use append on expected state dump, not ideal but gives multiple results --- diff --git a/src/openpower/test/state.py b/src/openpower/test/state.py index 735d1925..7995a8bc 100644 --- a/src/openpower/test/state.py +++ b/src/openpower/test/state.py @@ -228,7 +228,7 @@ class ExpectedState(State): path += testfile + '/' os.makedirs(path, exist_ok=True) - with open("%s%s.py" % (path, testname), "w") as sout: + with open("%s%s.py" % (path, testname), "a") as sout: # pc and intregs sout.write("%se = ExpectedState(pc=%d)\n" % (lindent, state.pc)) for i, reg in enumerate(state.intregs):