Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 5 | 4 |
| 6 import sys | |
| 7 | 5 |
| 8 from infra.tools.cq_stats import cq_stats | 6 class TryJobType(): |
| 7 type_compile = 'compile' | |
|
stgao
2016/01/28 19:33:52
IIRC, constant usually use upper-case instead of l
chanli
2016/01/28 22:40:12
Done.
| |
| 8 type_test = 'test' | |
|
stgao
2016/01/28 19:33:52
It seems the 'type' in the var name is a bit redun
chanli
2016/01/28 22:40:12
Done.
| |
| 9 | 9 |
| 10 | 10 |
| 11 if __name__ == '__main__': | 11 class TryJobStatus(): |
|
stgao
2016/01/28 19:33:52
It seems duplicating common.buildbucket_client.Bui
chanli
2016/01/28 22:40:12
Done.
| |
| 12 sys.exit(cq_stats.main()) | 12 scheduled = 'SCHEDULED' |
| 13 started = 'STARTED' | |
| 14 completed = 'COMPLETED' | |
| OLD | NEW |