From 10e0db2f4b1167a74289187a0ea745d2e537d906 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 11 Nov 2021 09:40:33 +0000 Subject: [PATCH] use append on expected state dump, not ideal but gives multiple results --- src/openpower/test/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.30.2