Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2375)

Unified Diff: Tools/GardeningServer/tests.py

Issue 465233002: Store alerts in sheriff-o-matic's memcache. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Tools/GardeningServer/tests.py
diff --git a/Tools/GardeningServer/tests.py b/Tools/GardeningServer/tests.py
new file mode 100755
index 0000000000000000000000000000000000000000..f962eb74502dd1d44ba34d860bc02108b9cb280e
--- /dev/null
+++ b/Tools/GardeningServer/tests.py
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import os
+import sys
+import unittest
+
+
+def main():
+ try:
+ import appengine_testing
+ except ImportError:
+ print ('Could not import appengine_testing. WebKit/Tools must be on '
+ 'PYTHONPATH.')
+ sys.exit(1)
+ appengine_testing.set_up()
+
+ tests_path = os.path.dirname(sys.modules[__name__].__file__)
+ suite = unittest.loader.TestLoader().discover(tests_path,
+ pattern='*_test.py')
+ unittest.TextTestRunner(verbosity=2).run(suite)
+
+
+if __name__ == '__main__':
+ main()

Powered by Google App Engine
This is Rietveld 408576698