Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos-caddy
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
Guillaume Hervier
slapos-caddy
Commits
e2b2d583
Commit
e2b2d583
authored
Oct 23, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rina: fix buildout path (test suites are already run in a dedicated folder)
parent
e7976887
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
17 deletions
+8
-17
software/build-rina/runTestSuite.in
software/build-rina/runTestSuite.in
+7
-17
software/build-rina/software.cfg
software/build-rina/software.cfg
+1
-0
No files found.
software/build-rina/runTestSuite.in
View file @
e2b2d583
#!{{parameter_dict['runTestSuite_py']}}
from __future__ import print_function
import argparse,
errno, os, shutil
, subprocess, sys, traceback
import argparse,
os
, subprocess, sys, traceback
from time import gmtime, strftime, time
# These are the 2 modules to reuse when using ERP5 for managing test bots.
# What we do here is currently too new to reuse more from testsuite.
...
...
@@ -12,9 +12,6 @@ from erp5.util.testsuite import format_command
dist_list = {{vm['dists'].split()}}
publish = {{slapparameter_dict.get('publish')}}
BUILDDIR = 'build'
BUILDOUT = os.path.realpath(os.path.join('software_release', 'bin', 'buildout'))
STAT_MAP = dict(
TOTAL = 'test_count',
PASS = None,
...
...
@@ -82,14 +79,9 @@ def main():
else:
test_result = DummyTestResult(dist_list)
if os.path.exists(BUILDDIR):
shutil.rmtree(BUILDDIR)
os.mkdir(BUILDDIR)
oldpwd = os.getcwd()
os.chdir(BUILDDIR)
with open('buildout.cfg', 'w') as f:
f.write("""\
fd = os.open('buildout.cfg', os.O_CREAT | os.O_EXCL | os.O_WRONLY, 0666)
try:
os.write(fd, """\
[buildout]
extends = {{parameter_dict['profile_base_location']}}/build.cfg
offline = true
...
...
@@ -106,6 +98,8 @@ location = {{parameter_dict['rina_tools']}}
[slapos.package-repository]
location = {{parameter_dict['slapos_package']}}
""")
finally:
os.close(fd)
librina_log = os.path.join('parts', 'debuild-librina', 'build.log')
stderr_write = sys.stderr.write
...
...
@@ -115,7 +109,7 @@ location = {{parameter_dict['slapos_package']}}
break
dist = test_result_line.name
cmd = [
BUILDOUT
,
cmd = [
{{repr(parameter_dict['buildout'])}}
,
'vm-run-base:dist=' + dist,
'debuild-rina-base:suite=' + (publish['suite'] if publish else ''),
]
...
...
@@ -188,10 +182,6 @@ location = {{parameter_dict['slapos_package']}}
# TODO: upload packages if 'publish' parameter is given
if args.master_url:
os.chdir(oldpwd)
shutil.rmtree(BUILDDIR)
if __name__ == "__main__":
main()
software/build-rina/software.cfg
View file @
e2b2d583
...
...
@@ -39,6 +39,7 @@ template = inline:
environment = {{dumps(environment)}}
vm = {{dumps(vm)}}
runTestSuite_py = ${buildout:bin-directory}/${runTestSuite_py:interpreter}
buildout = ${buildout:bin-directory}/buildout
profile_base_location = ${:_profile_base_location_}
rina_tools = ${rina-tools-repository:location}
slapos_package = ${slapos.package-repository:location}
...
...
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