OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 The Swarming Authors. All rights reserved. | 2 # Copyright 2013 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed under the Apache License, Version 2.0 that | 3 # Use of this source code is governed by the Apache v2.0 license that can be |
4 # can be found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import logging | 6 import logging |
7 import os | 7 import os |
8 import subprocess | 8 import subprocess |
9 import sys | 9 import sys |
10 import unittest | 10 import unittest |
11 | 11 |
12 BASE_DIR = os.path.dirname(os.path.abspath(__file__)) | 12 BASE_DIR = os.path.dirname(os.path.abspath(__file__)) |
13 | 13 |
14 ISOLATE_SERVER = 'https://isolateserver.appspot.com/' | 14 ISOLATE_SERVER = 'https://isolateserver.appspot.com/' |
(...skipping 22 matching lines...) Expand all Loading... |
37 logging.debug(out) | 37 logging.debug(out) |
38 self.assertEqual(0, p.returncode, out) | 38 self.assertEqual(0, p.returncode, out) |
39 | 39 |
40 | 40 |
41 if __name__ == '__main__': | 41 if __name__ == '__main__': |
42 logging.basicConfig( | 42 logging.basicConfig( |
43 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) | 43 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) |
44 if '-v' in sys.argv: | 44 if '-v' in sys.argv: |
45 unittest.TestCase.maxDiff = None | 45 unittest.TestCase.maxDiff = None |
46 unittest.main() | 46 unittest.main() |
OLD | NEW |