diff options
author | Sandeep Hegde <dsandeephegde@gmail.com> | 2017-10-25 19:56:26 -0400 |
---|---|---|
committer | Sandeep Hegde <dsandeephegde@gmail.com> | 2017-11-06 13:00:13 -0500 |
commit | 2b8b98d3a669461775fc30bff88237a9d9055311 (patch) | |
tree | 29bf46cdc50ede4a0e4016c098dbd3d519c4ab69 /python/servo/mutation/init.py | |
parent | 6688b8a146cbc4ade65c7c021aef4acf0b36bee6 (diff) | |
download | servo-2b8b98d3a669461775fc30bff88237a9d9055311.tar.gz servo-2b8b98d3a669461775fc30bff88237a9d9055311.zip |
Removed build and wpt-test output from mutation test log and refactored code.
Diffstat (limited to 'python/servo/mutation/init.py')
-rw-r--r-- | python/servo/mutation/init.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/python/servo/mutation/init.py b/python/servo/mutation/init.py index 5cf7c1fce48..6087dc2500d 100644 --- a/python/servo/mutation/init.py +++ b/python/servo/mutation/init.py @@ -17,21 +17,21 @@ import test def get_folders_list(path): folder_list = [] for filename in listdir(path): - if (isdir(join(path, filename))): + if isdir(join(path, filename)): folder_name = join(path, filename) folder_list.append(folder_name) - return(folder_list) + return folder_list def mutation_test_for(mutation_path): - test_mapping_file = join(mutation_path, 'Test_mapping.json') - if(isfile(test_mapping_file)): + test_mapping_file = join(mutation_path, 'test_mapping.json') + if isfile(test_mapping_file): json_data = open(test_mapping_file).read() test_mapping = json.loads(json_data) - + # Run mutation test for all source files in mapping file. for src_file in test_mapping.keys(): test.mutation_test(join(mutation_path, src_file.encode('utf-8')), test_mapping[src_file]) - + # Run mutation test in all folder in the path. for folder in get_folders_list(mutation_path): mutation_test_for(folder) else: |