aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/mutation/test.py
diff options
context:
space:
mode:
authorSandeep Hegde <dsandeephegde@gmail.com>2017-10-24 22:11:48 -0400
committerSandeep Hegde <dsandeephegde@gmail.com>2017-11-06 13:00:12 -0500
commit0d2ad9a5beebfb2ac19e99139dd6ddb747bb4bbb (patch)
tree46da29483fdfd2b3c60edbf93717d3171eb5f370 /python/servo/mutation/test.py
parentabbdcf0afc822fbce96f3b4ba152ceb9d0063740 (diff)
downloadservo-0d2ad9a5beebfb2ac19e99139dd6ddb747bb4bbb.tar.gz
servo-0d2ad9a5beebfb2ac19e99139dd6ddb747bb4bbb.zip
Checking the wpt test failures/success.
Diffstat (limited to 'python/servo/mutation/test.py')
-rw-r--r--python/servo/mutation/test.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/python/servo/mutation/test.py b/python/servo/mutation/test.py
index f62045c0398..790789f3fdd 100644
--- a/python/servo/mutation/test.py
+++ b/python/servo/mutation/test.py
@@ -24,10 +24,12 @@ def mutation_test(file_name):
subprocess.call('python mach build --release', shell=True)
print "running tests for mutant {0}-{1}".format(file_name, lineToMutate)
sys.stdout.flush()
- subprocess.call('python mach test-wpt XMLHttpRequest --release', shell=True)
- print "mutated file {0} diff".format(file_name)
- sys.stdout.flush()
- subprocess.call('git --no-pager diff {0}'.format(file_name), shell=True)
+ testStatus = subprocess.call('python mach test-wpt XMLHttpRequest --release', shell=True)
+ if testStatus != 0:
+ print('Failed in while running `python mach test-wpt XMLHttpRequest --release`')
+ print "mutated file {0} diff".format(file_name)
+ sys.stdout.flush()
+ subprocess.call('git --no-pager diff {0}'.format(file_name), shell=True)
print "reverting mutant {0}-{1}".format(file_name, lineToMutate)
sys.stdout.flush()
subprocess.call('git checkout {0}'.format(file_name), shell=True)