13f085823Sopenharmony_ci#!/usr/bin/env python3 23f085823Sopenharmony_ci# coding=utf-8 33f085823Sopenharmony_ci 43f085823Sopenharmony_ci# 53f085823Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd. 63f085823Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 73f085823Sopenharmony_ci# you may not use this file except in compliance with the License. 83f085823Sopenharmony_ci# You may obtain a copy of the License at 93f085823Sopenharmony_ci# 103f085823Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 113f085823Sopenharmony_ci# 123f085823Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 133f085823Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 143f085823Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 153f085823Sopenharmony_ci# See the License for the specific language governing permissions and 163f085823Sopenharmony_ci# limitations under the License. 173f085823Sopenharmony_ci# 183f085823Sopenharmony_ci 193f085823Sopenharmony_ciimport sys 203f085823Sopenharmony_cifrom main import Console 213f085823Sopenharmony_cifrom xdevice import platform_logger 223f085823Sopenharmony_cifrom xdevice.__main__ import check_report_template 233f085823Sopenharmony_ci 243f085823Sopenharmony_ciLOG = platform_logger("main") 253f085823Sopenharmony_ci 263f085823Sopenharmony_ci 273f085823Sopenharmony_cidef main_process(): 283f085823Sopenharmony_ci LOG.info("************* Developer Test Framework Starting **************") 293f085823Sopenharmony_ci console = Console() 303f085823Sopenharmony_ci check_report_template() 313f085823Sopenharmony_ci console.console(sys.argv) 323f085823Sopenharmony_ci LOG.info("************* Developer Test Framework Finished **************") 333f085823Sopenharmony_ci 343f085823Sopenharmony_ci 353f085823Sopenharmony_ciif __name__ == "__main__": 363f085823Sopenharmony_ci main_process() 37