Exemplo n.º 1
0
def init_ssh_and_setipaddress():
    package = co.Install_Package()
    init_qnx_system = icuc.init_environment(package.update_fota_package()[1],
                                            package.update_fota_package()[4])
    init_qnx_system()
Exemplo n.º 2
0
import random
import pytest_html.extras
import pytest_html.hooks
import pytest_html.plugin
import subprocess
from Common import System_Activation as set
from Common import Common as co
from log import logger as loger
from Common import Hive_Connect as hc
# print(list(set.Setting_Actions["settings"][3].keys())[0])

logger = loger.Current_Module()

adb_object = co.ADB_SN()

vin_number = co.Install_Package().update_fota_package()[3]

date_time = co.Install_Package().update_fota_package()[5]

sn = adb_object.check_adb_device_isalive()
set.Action.set_sn(sn)
start_step = 2
end_step = 2

buried_log = '/update/buried_System_Activation.log'
buried_point = "/sdcard/Android/data/com.wm.tracker/files/temp/*"

save_data = "/update/buried_local_System_Activation.log"
busybox = "/yf/bin/busybox"
LOG_PATH = 'logcat -v time |grep -iE \".*wmTracker.*EventModel.*\" |grep -v "clientSendMessage" >> %s &' % (
    buried_log)
Exemplo n.º 3
0
from Common import Signal_List as SL
from Common import Signal_Common as SC
from Common import Common as co
from Common import Picture_Compare as pc
from Common import Icu_Common_Adb as ica
from multiprocessing import pool

# adb = co.ADB_SN()
# adb_number = adb.get_sn_from_adb_command()[0]
execute_adb_command = ica.excute_adb_command()
logger = loger.Current_Module()

ssh = sshc.SSH_Client()
sftp = sshc.SFTP_Client()
ping_object = sshc.Ping_Object()
package = co.Install_Package()
CPP = pc.Compare_Picture()

username = "******"
password = "******"
script_name = "/root/configurate_ase3.sh"
save_picture_directory = "screenshot -file=/fs/usb0/"
udisk_path = "/fs/usb0/"
screen_command = "screenshot -file="
# save_picture_directory = "/tmp/"
# create_screen_directory = "mkdir -p /fs/usb0/screen/"
delete_screen_picture = "rm -rf /fs/usb0/*.png"
root_read_write = "mount -uw  /fs/usb0/"
icu_logfile = "/fs/usb0/cluster_service.log"
mcu_logfile = "/fs/usb0/mcu_service.log"