Skip to content

Commit c1fa44f

Browse files
authored
write status to err file (#155)
1 parent 721a2da commit c1fa44f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

testmodel.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ def writeResult():
4545
def writeResultAndExit(exitStatus):
4646
writeResult()
4747
print("Calling exit ...")
48+
with open(errFile, 'a+') as fp:
49+
fp.write("[Calling os._exit(%s)]\n" % exitStatus)
50+
fp.flush()
4851
sys.stdout.flush()
4952
os._exit(exitStatus)
50-
# calling sys.exit will hang in lock.acquire()
51-
# sys.exit(exitStatus)
5253

5354
def sendExpressionTimeout(omc, cmd, timeout):
5455
with open(errFile, 'a+') as fp:

0 commit comments

Comments
 (0)