Mike Frysinger | c92df47 | 2019-03-01 15:05:41 -0500 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
Chris Sosa | 18fea3f | 2011-03-22 13:15:34 -0700 | [diff] [blame] | 2 | # Copyright (c) 2011 The Chromium OS 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 | |
Daniel Wang | dec23c1 | 2016-01-25 18:15:56 -0800 | [diff] [blame] | 6 | """Module containing contants to be used across crostestutils.""" |
| 7 | |
| 8 | from __future__ import print_function |
| 9 | |
Chris Sosa | 18fea3f | 2011-03-22 13:15:34 -0700 | [diff] [blame] | 10 | import os |
| 11 | |
| 12 | _TEST_LIB_PATH = os.path.realpath(__file__) |
| 13 | |
Mike Frysinger | 8ea7f0b | 2018-10-12 02:43:50 -0400 | [diff] [blame] | 14 | CROSTESTUTILS_DIR = os.path.dirname(_TEST_LIB_PATH) |
| 15 | |
| 16 | CROS_PLATFORM_ROOT = os.path.join(CROSTESTUTILS_DIR, '..', '..') |
Chris Sosa | 85d67ab | 2011-09-29 14:48:27 -0700 | [diff] [blame] | 17 | |
Chris Sosa | a404a38 | 2013-08-22 11:28:38 -0700 | [diff] [blame] | 18 | DEFAULT_CHROOT_DIR = 'chroot' |
| 19 | |
David James | 9d059db | 2012-12-30 10:04:32 -0800 | [diff] [blame] | 20 | SOURCE_ROOT = os.path.realpath(os.path.join( |
| 21 | os.path.dirname(_TEST_LIB_PATH), '..', '..', '..', '..')) |
Chris Sosa | 18fea3f | 2011-03-22 13:15:34 -0700 | [diff] [blame] | 22 | |
David James | 9d059db | 2012-12-30 10:04:32 -0800 | [diff] [blame] | 23 | CROSUTILS_DIR = os.path.join(SOURCE_ROOT, 'src', 'scripts') |
| 24 | |
| 25 | CROSUTILS_LIB_DIR = os.path.join(CROSUTILS_DIR, 'lib') |
David James | 53f9a2e | 2012-12-28 17:33:52 -0800 | [diff] [blame] | 26 | |
Jay Kim | cde7129 | 2014-03-17 20:29:00 -0700 | [diff] [blame] | 27 | MAX_TIMEOUT_SECONDS = 4800 |