blob: ccc55278eb35f33bb65ef1606708d46bd4ad78ea [file] [log] [blame]
Mike Frysingerc92df472019-03-01 15:05:41 -05001# -*- coding: utf-8 -*-
Chris Sosa18fea3f2011-03-22 13:15:34 -07002# 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 Wangdec23c12016-01-25 18:15:56 -08006"""Module containing contants to be used across crostestutils."""
7
8from __future__ import print_function
9
Chris Sosa18fea3f2011-03-22 13:15:34 -070010import os
11
12_TEST_LIB_PATH = os.path.realpath(__file__)
13
Mike Frysinger8ea7f0b2018-10-12 02:43:50 -040014CROSTESTUTILS_DIR = os.path.dirname(_TEST_LIB_PATH)
15
16CROS_PLATFORM_ROOT = os.path.join(CROSTESTUTILS_DIR, '..', '..')
Chris Sosa85d67ab2011-09-29 14:48:27 -070017
Chris Sosaa404a382013-08-22 11:28:38 -070018DEFAULT_CHROOT_DIR = 'chroot'
19
David James9d059db2012-12-30 10:04:32 -080020SOURCE_ROOT = os.path.realpath(os.path.join(
21 os.path.dirname(_TEST_LIB_PATH), '..', '..', '..', '..'))
Chris Sosa18fea3f2011-03-22 13:15:34 -070022
David James9d059db2012-12-30 10:04:32 -080023CROSUTILS_DIR = os.path.join(SOURCE_ROOT, 'src', 'scripts')
24
25CROSUTILS_LIB_DIR = os.path.join(CROSUTILS_DIR, 'lib')
David James53f9a2e2012-12-28 17:33:52 -080026
Jay Kimcde71292014-03-17 20:29:00 -070027MAX_TIMEOUT_SECONDS = 4800