aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/mutation/test.py
diff options
context:
space:
mode:
authorSandeep Hegde <dsandeephegde@gmail.com>2017-10-25 11:27:26 -0400
committerSandeep Hegde <dsandeephegde@gmail.com>2017-11-06 13:00:13 -0500
commit58ab11cf9b42c5040bbdd3a57e4f38332e93b26f (patch)
tree9e40cee2039a80280df287d80f1e824e7bc26f28 /python/servo/mutation/test.py
parent445ab9ae8dce1fa841f5fed19c749af82015a08b (diff)
downloadservo-58ab11cf9b42c5040bbdd3a57e4f38332e93b26f.tar.gz
servo-58ab11cf9b42c5040bbdd3a57e4f38332e93b26f.zip
Fixed few tidy errors
Diffstat (limited to 'python/servo/mutation/test.py')
-rw-r--r--python/servo/mutation/test.py11
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):