blob: 02f768a746fd8bdb5387156acd3793f6665cd3d3 [file] [log] [blame]
#!/usr/bin/env vpython
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Runs all devil tests under python2."""
import os
import sys
_CATAPULT_PATH = os.path.abspath(
os.path.join(os.path.dirname(__file__), '..', '..'))
_DEVIL_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
import six
from catapult_build import run_with_typ
def main():
if six.PY3:
print('Somehow running under python3.')
return 1
# Tests mock out internal details of methods, and the ANDROID_SERIAL can
# change which internal methods are called. Since tests don't actually use
# devices, it should be fine to delete the variable.
if 'ANDROID_SERIAL' in os.environ:
del os.environ['ANDROID_SERIAL']
return run_with_typ.Run(top_level_dir=_DEVIL_PATH)
if __name__ == '__main__':