-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathrun.py
More file actions
44 lines (34 loc) · 912 Bytes
/
run.py
File metadata and controls
44 lines (34 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- coding: utf-8 -*-
__author__ = 'joko'
"""
@author:joko
@time: 16/11/10 下午3:55
"""
import os
import sys
main_view = os.path.split(os.path.realpath(sys.argv[0]))[0]
sys.path.append(main_view)
import public.CleanProcess
import public.GetDevice
import po.integration
import public.CheckEnvironment
public.CheckEnvironment.check_environment()
import threading
class r(threading.Thread):
def __init__(self, device, ):
threading.Thread.__init__(self)
self.device = device
def run(self):
a = po.integration.RunApp(self.device)
a.case_start()
def run_device():
public.GetDevice.set_device_yaml()
device_list = po.integration.get_device_info()
for device in device_list:
test_run = r(device)
test_run.start()
test_run.join()
if __name__ == '__main__':
run_device()
cl = public.CleanProcess.Cp()
cl.clean_process_all()