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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhifan huang
slapos
Commits
2a808e97
Commit
2a808e97
authored
Mar 10, 2022
by
zhifan huang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 're6st-test' into name_test
parents
728aae8f
424ec5c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
21 deletions
+18
-21
software/re6stnet/buildout.hash.cfg
software/re6stnet/buildout.hash.cfg
+1
-1
software/re6stnet/run-unit-test.in
software/re6stnet/run-unit-test.in
+17
-20
No files found.
software/re6stnet/buildout.hash.cfg
View file @
2a808e97
...
...
@@ -30,4 +30,4 @@ md5sum = feb4b3318f37414d1bf3d16a03aec93d
[template-runTestSuite]
filename = run-unit-test.in
md5sum =
39043b4a94159fe0846db1c5f44280e8
md5sum =
e2572344a6661fc66efb7c802dd12aa9
software/re6stnet/run-unit-test.in
View file @
2a808e97
...
...
@@ -49,7 +49,19 @@ def main():
args = parser.parse_args()
test_suite_title = args.test_suite_title or args.test_suite
test_name_list = ['Registry']
command = [RUN_RE6ST_TESTS]
p = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
out, err = p.communicate()
# result = out.replace("'", '"')
result= json.loads(out)
test_name_list = list(result)
# print to stdout so we can see in testnode logs
sys.stdout.write(out)
sys.stderr.write(err)
if args.master_url:
tool = taskdistribution.TaskDistributor(portal_url = args.master_url)
...
...
@@ -64,31 +76,16 @@ def main():
if test_result is None:
return
while 1:
test_result_line = test_result.start()
if not test_result_line:
break
command = [RUN_RE6ST_TESTS]
p = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
out, err = p.communicate()
result = out.replace("'", '"')
status_dict = json.loads(result)
end
= time.time()
start
= time.time()
# print to stdout so we can see in testnode logs
sys.stdout.write(out)
sys.stderr.write(err)
for case in test_name_list:
test_result_line = test_result.start()
# report status back to Nexedi ERP5
test_result_line.stop(
command = command,
date = time.strftime("%Y/%m/%d %H:%M:%S", time.gmtime(end)),
stderr=err,
stdout=out,
**status_dict)
**result[case])
if __name__ == "__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