You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
827 B
26 lines
827 B
#!/usr/bin/python2 -u
|
|
import os
|
|
import sys
|
|
|
|
import common
|
|
|
|
_AUTOTEST_ROOT = os.path.realpath(os.path.join(__file__, '..', '..'))
|
|
_CHROMIUMOS_ROOT = os.path.abspath(
|
|
os.path.join(_AUTOTEST_ROOT, '..', '..', '..', '..'))
|
|
_SKYLAB_INVENTORY_DIR = os.path.join(_CHROMIUMOS_ROOT, 'infra',
|
|
'skylab_inventory', 'venv')
|
|
# In any sane chromiumos checkout
|
|
sys.path.append(_SKYLAB_INVENTORY_DIR)
|
|
# TODO: Where is this checked out on infra servers?
|
|
|
|
try:
|
|
import skylab_inventory # pylint: disable=unused-import
|
|
except ImportError as e:
|
|
raise Exception('Error when importing skylab_inventory (venv dir: %s): %s'
|
|
% (_SKYLAB_INVENTORY_DIR, e))
|
|
|
|
# Import atest after 'import skylab_inventory' as it uses skylab_inventory
|
|
from autotest_lib.cli import atest
|
|
|
|
sys.exit(atest.main())
|