1*b3adc34aSAndroid Build Coastguard Worker#!/usr/bin/env python3 2*b3adc34aSAndroid Build Coastguard Worker# Copyright 2020, The Android Open Source Project 3*b3adc34aSAndroid Build Coastguard Worker# 4*b3adc34aSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); 5*b3adc34aSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License. 6*b3adc34aSAndroid Build Coastguard Worker# You may obtain a copy of the License at 7*b3adc34aSAndroid Build Coastguard Worker# 8*b3adc34aSAndroid Build Coastguard Worker# http://www.apache.org/licenses/LICENSE-2.0 9*b3adc34aSAndroid Build Coastguard Worker# 10*b3adc34aSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software 11*b3adc34aSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, 12*b3adc34aSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*b3adc34aSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and 14*b3adc34aSAndroid Build Coastguard Worker# limitations under the License. 15*b3adc34aSAndroid Build Coastguard Worker 16*b3adc34aSAndroid Build Coastguard Workerimport os 17*b3adc34aSAndroid Build Coastguard Workerimport sys 18*b3adc34aSAndroid Build Coastguard Worker 19*b3adc34aSAndroid Build Coastguard Workerif __name__ == '__main__': 20*b3adc34aSAndroid Build Coastguard Worker top = os.getenv('ANDROID_BUILD_TOP') 21*b3adc34aSAndroid Build Coastguard Worker if not top: 22*b3adc34aSAndroid Build Coastguard Worker print('Unable to locate ANDROID_BUILD_TOP.') 23*b3adc34aSAndroid Build Coastguard Worker sys.exit(1) 24*b3adc34aSAndroid Build Coastguard Worker env_vars = os.environ.copy() 25*b3adc34aSAndroid Build Coastguard Worker os.chdir(top) 26*b3adc34aSAndroid Build Coastguard Worker cmd = ('python tools/asuite/atest/integration_tests/' 27*b3adc34aSAndroid Build Coastguard Worker 'atest_command_verification_tests.py --use-prebuilt-atest-binary') 28*b3adc34aSAndroid Build Coastguard Worker sys.exit(os.system(cmd))