| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Utility functions used by Generational and Mutational ClusterFuzz | 6 """Utility functions used by Generational and Mutational ClusterFuzz |
| 7 fuzzers.""" | 7 fuzzers.""" |
| 8 | 8 |
| 9 import argparse | 9 import argparse |
| 10 import os | 10 import os |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 assert False, 'Unknown platform' | 94 assert False, 'Unknown platform' |
| 95 | 95 |
| 96 def get_application_path(): | 96 def get_application_path(): |
| 97 """Return chrome application path.""" | 97 """Return chrome application path.""" |
| 98 if APP_PATH_KEY not in os.environ: | 98 if APP_PATH_KEY not in os.environ: |
| 99 sys.exit( | 99 sys.exit( |
| 100 'Environment variable %s should be set to chrome path.' % APP_PATH_KEY) | 100 'Environment variable %s should be set to chrome path.' % APP_PATH_KEY) |
| 101 | 101 |
| 102 return os.environ[APP_PATH_KEY] | 102 return os.environ[APP_PATH_KEY] |
| OLD | NEW |