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

Side by Side Diff: tools/deep_memory_profiler/visualizer/run_tests.py

Issue 23781012: Upload file to app engine and generate public url for dmprof visualizer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix review problems Created 7 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 #!/usr/bin/python
2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import os
7 import sys
8 import unittest
9
10
11 def main():
12 if len(sys.argv) != 2:
13 sys.stderr.write("""Usage: run_tests.py <path/to/google_appengine>""")
14 sys.exit(1)
15
16 sys.path.insert(0, sys.argv.pop(1))
17 import dev_appserver
18 dev_appserver.fix_sys_path()
19 path = os.path.dirname(os.path.abspath(__file__))
20 suite = unittest.loader.TestLoader().discover(
21 path,
22 pattern='*_unittest.py'
23 )
24 unittest.TextTestRunner(verbosity=2).run(suite)
25
26
27 if __name__ == '__main__':
28 sys.exit(main())
OLDNEW
« no previous file with comments | « tools/deep_memory_profiler/visualizer/index.html ('k') | tools/deep_memory_profiler/visualizer/services.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698