Esempio n. 1
0
 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))
Esempio n. 2
0
 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))
Esempio n. 3
0
 def test_split(self):
     s = 'hello world'
     ctr_shell.execute('adb shell')
     ctr_shell.execute('ls -l')
     self.assertEqual(s.split(), ['hello', 'world'])
Esempio n. 4
0
 def test_split(self):
     s = 'hello world'
     ctr_shell.execute('adb shell')
     ctr_shell.execute('ls -l')
     self.assertEqual(s.split(), ['hello', 'world'])