import os
from testr.packages import make_regress_files

regress_files = ['starcheck.txt',
                 'starcheck/pcad_att_check.txt']

clean = {'starcheck.txt': [(r'\s*Run on.*[\n\r]*', ''),
                           (os.environ['SKA'], '')],
         'starcheck/pcad_att_check.txt': [(os.environ['SKA'], '')]}

make_regress_files(regress_files, clean=clean)

[((11, 0, 11, 46), 'testr.packages.make_regress_files', 'make_regress_files', (), '', False, 'from testr.packages import make_regress_files\n')]