12 runfiles = os.listdir()
13 for runfile
in runfiles:
16 if runfile[-4:] ==
'.run':
19 runreffile = runfile[0:-3]+
'ref'
20 outfile = open(runreffile,
"w")
23 for line
in open(runfile,
'r'):
25 if re.search(test_string, line):
28 print(
'no matches found')