Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: run_tests.py

Issue 29328211: Issue 3081 - Enable threading for the run_tests.py Flask webserver (Closed)
Patch Set: Created Sept. 21, 2015, 10:19 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # coding: utf-8 2 # coding: utf-8
3 3
4 # This file is part of Adblock Plus <https://adblockplus.org/>, 4 # This file is part of Adblock Plus <https://adblockplus.org/>,
5 # Copyright (C) 2006-2015 Eyeo GmbH 5 # Copyright (C) 2006-2015 Eyeo GmbH
6 # 6 #
7 # Adblock Plus is free software: you can redistribute it and/or modify 7 # Adblock Plus is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License version 3 as 8 # it under the terms of the GNU General Public License version 3 as
9 # published by the Free Software Foundation. 9 # published by the Free Software Foundation.
10 # 10 #
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 if __name__ == "__main__": 92 if __name__ == "__main__":
93 DEPENDENCY_SCRIPT = os.path.join(os.path.dirname(__file__), "ensure_dependenci es.py") 93 DEPENDENCY_SCRIPT = os.path.join(os.path.dirname(__file__), "ensure_dependenci es.py")
94 94
95 try: 95 try:
96 subprocess.check_call([sys.executable, DEPENDENCY_SCRIPT]) 96 subprocess.check_call([sys.executable, DEPENDENCY_SCRIPT])
97 except subprocess.CalledProcessError as e: 97 except subprocess.CalledProcessError as e:
98 print >>sys.stderr, e 98 print >>sys.stderr, e
99 print >>sys.stderr, "Failed to ensure dependencies being up-to-date!" 99 print >>sys.stderr, "Failed to ensure dependencies being up-to-date!"
100 100
101 app.run(debug=True) 101 # FIXME - See https://github.com/mitsuhiko/werkzeug/pull/770
102 from werkzeug.serving import ThreadedWSGIServer
103 ThreadedWSGIServer.daemon_threads = True
104
105 app.run(debug=True, threaded=True)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld