def setup_method(self): clr_env.data_check_setup_met() fun.cmd(f"rm -rf /opt/pkt/*pcap", 'gw') re = fun.cmd(f"ls /opt/pkt/", 'gw') print('setup_method_re:', re) assert 'pcap' not in re
def setup_method(self): fun.cmd("rm -f /opt/pkt/*txt", 'BG8010Client') fun.cmd("rm -f /opt/pkt/*txt", 'BG8010Server') re1 = fun.cmd("ls /opt/pkt/ |grep *txt", 'BG8010Client') re2 = fun.cmd("ls /opt/pkt/ |grep *txt", 'BG8010Server') print('客户端txt文件查询结果是:', re1) print('服务端txt文件查询结果是:', re2) clr_env.data_check_setup_met(dut='FrontDut') clr_env.data_check_setup_met(dut='BackDut')
def teardown_method(self): clr_env.iso_teardown_met('app_scp', base_path) # print(1111111111) fun.cmd("rm -f /opt/pkt/*txt", 'BG8010Client') fun.cmd("rm -f /opt/pkt/*txt", 'BG8010Server') re1 = fun.cmd("ls /opt/pkt/ |grep *txt", 'BG8010Client') re2 = fun.cmd("ls /opt/pkt/ |grep *txt", 'BG8010Server') print('客户端txt文件查询结果是:', re1) print('服务端txt文件查询结果是:', re2) clr_env.data_check_setup_met(dut='FrontDut') clr_env.data_check_setup_met(dut='BackDut')
def setup_method(self): clr_env.data_check_setup_met(dut='FrontDut') clr_env.data_check_setup_met(dut='BackDut')
def setup_method(self): clr_env.data_check_setup_met()