def test_sc_open_sw_c1(self): # open a1 sw preview ctr_shell.execute(module_command_cam_open.sc_open_sw_c1) # get log # ctr_shell.adb_pull() # show log log = ctr_shell.get_log('result.txt') # get 50 last info info = get_last_line.get_n_last_lines('result.txt', 50) infos = util.get_last_elements(25, info) print info print infos self.assertTrue(util.items_in_list(module_cam_open.sc_open_sw_c1, infos))
def test_sc_open_hw_c1(self): # open a1 hw preview ctr_shell.execute(module_command_cam_open.sc_open_hw_c1) # get log # ctr_shell.adb_pull() # show log log = ctr_shell.get_log('result.txt') # get 50 last info info = get_last_line.get_n_last_lines('result.txt', 50) infos = util.get_last_elements(25, info) print info print infos self.assertTrue( util.items_in_list(module_cam_open.sc_open_hw_c1, infos))