1import lit.formats 2import os 3 4config.name = "per-test-coverage" 5config.suffixes = [".py"] 6config.test_format = lit.formats.ShTest( 7 execute_external=eval(lit_config.params.get("execute_external")), 8 preamble_commands=["%{python} %s | FileCheck -DINDEX=0 %s"] 9) 10config.substitutions.append(("%{python}", '"%s"' % (sys.executable))) 11