lin
2025-08-14 dae8bad597b6607a449b32bf76c523423f7720ed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/python -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())