Skip to content

Commit 8be1998

Browse files
authored
Add status to log, enable to reduce e.g. NONDET (#130)
1 parent c697042 commit 8be1998

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/src/main/python/drivers/vkrun.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def run_linux(vert, frag, json, skip_render):
7575
except subprocess.CalledProcessError as err:
7676
status = 'CRASH'
7777

78-
with open('STATUS', 'w') as f:
79-
f.write(status)
78+
with open(LOGFILE, 'a') as f:
79+
f.write('\nSTATUS ' + status + '\n')
8080

8181
def dump_info_linux():
8282
cmd = 'vkworker --info'
@@ -200,8 +200,8 @@ def run_android(vert, frag, json, skip_render):
200200
adb('pull ' + ref_image + ' nondet0.png')
201201
adb('pull ' + next_image + ' nondet1.png')
202202

203-
with open('STATUS', 'w') as f:
204-
f.write(status)
203+
with open(LOGFILE, 'a') as f:
204+
f.write('\nSTATUS ' + status + '\n')
205205

206206
if status != 'SUCCESS':
207207
# Something went wrong, make sure to stop the app in any case

0 commit comments

Comments
 (0)