diff options
Diffstat (limited to 'python/servo/mutation/test.py')
-rw-r--r-- | python/servo/mutation/test.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/python/servo/mutation/test.py b/python/servo/mutation/test.py index 76f88af36f3..dd06871e65b 100644 --- a/python/servo/mutation/test.py +++ b/python/servo/mutation/test.py @@ -1,8 +1,18 @@ +# Copyright 2013 The Servo Project Developers. See the COPYRIGHT +# file at the top-level directory of this distribution. +# +# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +# option. This file may not be copied, modified, or distributed +# except according to those terms. + import fileinput import re import subprocess import sys + def mutate_line(file_name, line_number): lines = open(file_name, 'r').readlines() lines[line_number - 1] = re.sub(r'\s&&\s', ' || ', lines[line_number - 1]) @@ -10,6 +20,7 @@ def mutate_line(file_name, line_number): out.writelines(lines) out.close() + def mutation_test(file_name, tests): lineNumbers = [] for line in fileinput.input(file_name): |