@@ -78,27 +78,27 @@ def main():
78
78
test_paths = []
79
79
for test in args .tests :
80
80
if not glob .glob (test ):
81
- print (' WARNING: Test file \ ' %s\ ' was not found. Ignoring it.' % (test ,), file = sys .stderr )
81
+ print (" WARNING: Test file '%s' was not found. Ignoring it." % (test ,), file = sys .stderr )
82
82
continue
83
83
test_paths .append (test )
84
84
85
85
for test in test_paths :
86
86
if args .verbose :
87
- print ('Scanning for RUN lines in test file: %s' % ( test ,) , file = sys .stderr )
87
+ print ('Scanning for RUN lines in test file: %s' + test , file = sys .stderr )
88
88
with open (test ) as f :
89
89
input_lines = [l .rstrip () for l in f ]
90
90
91
91
if args .update_only :
92
92
if len (input_lines ) == 0 or 'autogenerated' not in input_lines [0 ]:
93
- print (' Skipping test which isn\ ' t autogenerated: %s' % ( test ) , file = sys .stderr )
94
- continue ;
93
+ print (" Skipping test which isn't autogenerated: " + test , file = sys .stderr )
94
+ continue
95
95
96
96
raw_lines = [m .group (1 )
97
97
for m in [common .RUN_LINE_RE .match (l ) for l in input_lines ] if m ]
98
98
run_lines = [raw_lines [0 ]] if len (raw_lines ) > 0 else []
99
99
for l in raw_lines [1 :]:
100
- if run_lines [- 1 ].endswith (" \\ " ):
101
- run_lines [- 1 ] = run_lines [- 1 ].rstrip (" \\ " ) + " " + l
100
+ if run_lines [- 1 ].endswith (' \\ ' ):
101
+ run_lines [- 1 ] = run_lines [- 1 ].rstrip (' \\ ' ) + ' ' + l
102
102
else :
103
103
run_lines .append (l )
104
104
@@ -110,9 +110,9 @@ def main():
110
110
prefix_list = []
111
111
for l in run_lines :
112
112
if '|' not in l :
113
- print ('WARNING: Skipping unparseable RUN line: %s' % ( l ,) , file = sys .stderr )
113
+ print ('WARNING: Skipping unparseable RUN line: ' + l , file = sys .stderr )
114
114
continue
115
-
115
+
116
116
(tool_cmd , filecheck_cmd ) = tuple ([cmd .strip () for cmd in l .split ('|' , 1 )])
117
117
common .verify_filecheck_prefixes (filecheck_cmd )
118
118
if not tool_cmd .startswith (opt_basename + ' ' ):
0 commit comments