mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Checking the wpt test failures/success.
This commit is contained in:
parent
abbdcf0afc
commit
0d2ad9a5be
1 changed files with 6 additions and 4 deletions
|
@ -24,10 +24,12 @@ def mutation_test(file_name):
|
||||||
subprocess.call('python mach build --release', shell=True)
|
subprocess.call('python mach build --release', shell=True)
|
||||||
print "running tests for mutant {0}-{1}".format(file_name, lineToMutate)
|
print "running tests for mutant {0}-{1}".format(file_name, lineToMutate)
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
subprocess.call('python mach test-wpt XMLHttpRequest --release', shell=True)
|
testStatus = subprocess.call('python mach test-wpt XMLHttpRequest --release', shell=True)
|
||||||
print "mutated file {0} diff".format(file_name)
|
if testStatus != 0:
|
||||||
sys.stdout.flush()
|
print('Failed in while running `python mach test-wpt XMLHttpRequest --release`')
|
||||||
subprocess.call('git --no-pager diff {0}'.format(file_name), 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)
|
||||||
print "reverting mutant {0}-{1}".format(file_name, lineToMutate)
|
print "reverting mutant {0}-{1}".format(file_name, lineToMutate)
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
subprocess.call('git checkout {0}'.format(file_name), shell=True)
|
subprocess.call('git checkout {0}'.format(file_name), shell=True)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue