-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclientstart.py
executable file
·34 lines (31 loc) · 1 KB
/
clientstart.py
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
#!/usr/bin/env python
# coding=utf8
'''
Name:Linux automated regression testing
Function:Check the ISO changes
Author:[email protected]
Time:20160413
'''
import os
import sys
import logging
from optparse import OptionParser
from testdrive import TestDrive
from logging_config import Logging_Config
def recivefile():
parser = OptionParser()
parser.add_option("-t", "--testxml", dest="testxmlname",
help="testxml")
parser.add_option("-s", "--setupxml", dest="setupxmlname",
help="do not print status")
(options, args) = parser.parse_args()
xmlfiles = {}
xmlfiles['testxml'] = os.path.abspath(options.testxmlname)
xmlfiles['setupxml'] = os.path.abspath(options.setupxmlname)
return xmlfiles
if __name__ == "__main__":
Logging_Config.setlogger('client', 'client.log')
sys.path.append(os.path.abspath('tests'))
xmlfile = recivefile()
Mytestapp = TestDrive(xmlfile['setupxml'], xmlfile['testxml'])
Mytestapp._run()