File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,9 @@ def main():
158
158
test_case = args .test_case
159
159
print_visual_reuse_info = args .print_visual_reuse_info
160
160
161
+ if not os .path .exists (temp_dir ):
162
+ os .makedirs (temp_dir )
163
+
161
164
# Generate pre-edit and post-edit files
162
165
pre_edit_file = open (temp_dir + '/' + test_file_name + '.' + test_case +
163
166
'.pre.swift' , mode = 'w+' )
@@ -261,7 +264,8 @@ def main():
261
264
serialized_incr_filename
262
265
])
263
266
except subprocess .CalledProcessError as e :
264
- print ('Test case %s failed' % (test_case ), file = sys .stderr )
267
+ print ('Test case "%s" of %s failed' % (test_case , test_file .name ),
268
+ file = sys .stderr )
265
269
print ('Syntax tree of incremental parsing does not match '
266
270
'from-scratch parsing of post-edit file:\n \n ' , file = sys .stderr )
267
271
print (e .output , file = sys .stderr )
You can’t perform that action at this time.
0 commit comments