aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy_tests/test_tidy.py
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-07-23 15:29:06 +0200
committerMs2ger <Ms2ger@gmail.com>2016-07-23 15:29:06 +0200
commit3548b5edd0a515cd911411a795f52631bc3e1f6e (patch)
treeabfe27cbd157d4271fa19f18114a85a83300b240 /python/tidy/servo_tidy_tests/test_tidy.py
parent7ea73ba2eec54e626db964eb3c943c2ba9b61466 (diff)
downloadservo-3548b5edd0a515cd911411a795f52631bc3e1f6e.tar.gz
servo-3548b5edd0a515cd911411a795f52631bc3e1f6e.zip
Return failure if the tidy self-tests fail.
Diffstat (limited to 'python/tidy/servo_tidy_tests/test_tidy.py')
-rw-r--r--python/tidy/servo_tidy_tests/test_tidy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/tidy/servo_tidy_tests/test_tidy.py b/python/tidy/servo_tidy_tests/test_tidy.py
index 8db19a5efd7..2a8eb871c0b 100644
--- a/python/tidy/servo_tidy_tests/test_tidy.py
+++ b/python/tidy/servo_tidy_tests/test_tidy.py
@@ -138,4 +138,4 @@ class CheckTidiness(unittest.TestCase):
def do_tests():
suite = unittest.TestLoader().loadTestsFromTestCase(CheckTidiness)
- unittest.TextTestRunner(verbosity=2).run(suite)
+ return 0 if unittest.TextTestRunner(verbosity=2).run(suite).wasSuccessful() else 1