1#!/usr/bin/env vpython 2# Copyright 2016 The Chromium 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 6import os 7import sys 8 9_CATAPULT_PATH = os.path.abspath( 10 os.path.join(os.path.dirname(__file__), '..', '..')) 11_DEVIL_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) 12 13sys.path.append(_CATAPULT_PATH) 14from catapult_build import run_with_typ 15 16 17def main(): 18 # Tests mock out internal details of methods, and the ANDROID_SERIAL can 19 # change which internal methods are called. Since tests don't actually use 20 # devices, it should be fine to delete the variable. 21 if 'ANDROID_SERIAL' in os.environ: 22 del os.environ['ANDROID_SERIAL'] 23 24 return run_with_typ.Run(top_level_dir=_DEVIL_PATH) 25 26 27if __name__ == '__main__': 28 sys.exit(main()) 29