aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy
diff options
context:
space:
mode:
authorTimur Borkhodoev <timur.borkhodoev@mail.utoronto.ca>2018-02-01 15:57:11 -0500
committerTimur Borkhodoev <timur.borkhodoev@mail.utoronto.ca>2018-02-01 15:57:11 -0500
commitbcb4bd2f3013ef8c415cf0f69143347a0cc6f78b (patch)
tree58a4f7e109a7cb0ded6690f91990c2b9aead19ae /python/tidy/servo_tidy
parent41bf86631ba682d277baa5201d799f5ad3b147e1 (diff)
downloadservo-bcb4bd2f3013ef8c415cf0f69143347a0cc6f78b.tar.gz
servo-bcb4bd2f3013ef8c415cf0f69143347a0cc6f78b.zip
Add self-test and modify tidy to accomodate the test
Diffstat (limited to 'python/tidy/servo_tidy')
-rw-r--r--python/tidy/servo_tidy/tidy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py
index 5a050d11f4a..fa3a610a41d 100644
--- a/python/tidy/servo_tidy/tidy.py
+++ b/python/tidy/servo_tidy/tidy.py
@@ -461,8 +461,8 @@ def rec_parse(current_path, current_node):
def check_manifest_dirs(config_file, print_text=True):
if not os.path.exists(config_file):
- print("%s manifest file is required but was not found" % config_file)
- sys.exit(1)
+ yield(config_file, 0, "%s manifest file is required but was not found" % config_file)
+ return
# Load configs from include.ini
with open(config_file) as content: