Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
slapos
Commits
fcdba69d
Commit
fcdba69d
authored
Apr 05, 2018
by
Eteri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fluentTest: add main
parent
2a6195c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
software/fluentTest/runTestSuite.in
software/fluentTest/runTestSuite.in
+10
-8
No files found.
software/fluentTest/runTestSuite.in
View file @
fcdba69d
...
...
@@ -10,8 +10,6 @@ from erp5.util import taskdistribution
from erp5.util.testsuite import TestSuite as BaseTestSuite
#class Server(BaseHTTPRequestHandler):
# def _set_headers(self):
# self.send_response(200)
...
...
@@ -27,15 +25,15 @@ from erp5.util.testsuite import TestSuite as BaseTestSuite
# def do_POST(self):
#
content_length = int(self.headers['Content-Length']) #
<---
Gets
the
size
of
data
#
content_length = int(self.headers['Content-Length']) #
<---
Gets
the
size
of
data
#
post_data =
self.rfile.read(content_length)
#
<
---
Gets
the
data
itself
#
print
(
post_data
)
#
self
.
_set_headers
()
#
self
.
wfile
.
write
(
post_data
)
#def
run(server_class=
HTTPServer,
handler_class=
Server,
port=
9443):
#
#def
run
Server
(server_class=
HTTPServer,
handler_class=
Server,
port=
9443):
#
test_list =
["testIntestion.py"]
...
...
@@ -76,7 +74,7 @@ class TestSuite(BaseTestSuite):
return
status_dict
def
ru
n
()
:
def
mai
n
()
:
parser =
argparse.ArgumentParser(description='Run
a
test
suite
.')
parser
.
add_argument
('
--test_suite
',
help=
'The test suite name'
)
parser
.
add_argument
('
--test_suite_title
',
help=
'The test suite title'
,
...
...
@@ -93,8 +91,8 @@ def run():
help=
'The Url of Master controling many suites'
,
default=
None)
testList=
["testIngestion.py"]
testList=
["
/srv/slapgrid/slappart0/srv/runner/project/slapos/software/fluentTest/
testIngestion.py"]
args =
parser.parse_args()
master =
taskdistribution.TaskDistributionTool(args.master_url)
test_suite_title =
args.test_suite_title
or
args
.
test_suite
...
...
@@ -106,6 +104,7 @@ def run():
test_result =
master.createTestResult(revision,
testList
,
args
.
test_node_title
,
suite
.
allow_restart
,
test_suite_title
,
args
.
project_title
)
if
test_result
is
not
None:
assert
revision =
=
test_result
.
revision
,
(
revision
,
test_result
.
revision
)
while
suite
.
acquire
()
:
...
...
@@ -116,3 +115,6 @@ def run():
elif
not
suite
.
running:
break
if
__name__ =
=
"
__main__
"
:
main
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment