Flutter Engine
The Flutter Engine
Functions
interpolate_test_suite Namespace Reference

Functions

def main ()
 

Function Documentation

◆ main()

def interpolate_test_suite.main ( )

Definition at line 14 of file interpolate_test_suite.py.

14def main():
15 # Parse arguments.
16 parser = ArgumentParser()
17 parser.add_argument('--input', action='store', required=True)
18 parser.add_argument('--test-suite', action='store', required=True)
19 parser.add_argument('--output', action='store', required=True)
20 args = parser.parse_args()
21
22 # Read, interpolate, write.
23 with open(args.input, 'r') as i, open(args.output, 'w') as o:
24 o.write(i.read().replace('{{TEST_SUITE}}', args.test_suite))
25
26 return 0
27
28