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
13848142
Commit
13848142
authored
Mar 30, 2017
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide pythonized runTestSuite
Inspired by build-rina style.
parent
84c13c09
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
12 deletions
+25
-12
software/cdn-test/instance-cdn-test.cfg.jinja2
software/cdn-test/instance-cdn-test.cfg.jinja2
+0
-10
software/cdn-test/instance.cfg.in
software/cdn-test/instance.cfg.in
+10
-0
software/cdn-test/runTestSuite.in
software/cdn-test/runTestSuite.in
+6
-0
software/cdn-test/software.cfg
software/cdn-test/software.cfg
+9
-2
No files found.
software/cdn-test/instance-cdn-test.cfg.jinja2
View file @
13848142
...
...
@@ -7,7 +7,6 @@ offline = true
parts =
request-kvm
deploy-unit-test
[request-kvm]
<= slap-connection
...
...
@@ -46,12 +45,3 @@ tmp = ${:home}/tmp/
log = ${:var}/log/
services = ${:etc}/service/
scripts = ${:etc}/run/
[deploy-unit-test]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
exit 0
output = ${directory:bin}/runTestSuite
mode = 755
software/cdn-test/instance.cfg.in
View file @
13848142
[buildout]
extends = ${template:output}
parts +=
runTestSuite
[runTestSuite]
recipe = slapos.recipe.template:jinja2
rendered = $${buildout:directory}/bin/$${:_buildout_section_name_}
template = ${:_profile_base_location_}/$${:_buildout_section_name_}.in
mode = 0755
context =
raw runTestSuite_py ${buildout:bin-directory}/${runTestSuite_py:interpreter}
[switch-softwaretype]
default = $${:cdn-test}
...
...
software/cdn-test/runTestSuite.in
0 → 100644
View file @
13848142
#!{{ runTestSuite_py }}
from __future__ import print_function
import argparse, os, subprocess, sys, traceback
from time import gmtime, strftime, time
from erp5.util import taskdistribution
from erp5.util.testsuite import format_command
software/cdn-test/software.cfg
View file @
13848142
...
...
@@ -5,6 +5,13 @@ parts =
eggs
slapos-package
template-cdn-test
runTestSuite_py
[runTestSuite_py]
recipe = zc.recipe.egg
eggs =
erp5.util
interpreter = ${:_buildout_section_name_}
[slapos-package]
recipe = slapos.recipe.build:gitclone
...
...
@@ -31,7 +38,7 @@ tries = 10
[template-cdn-test]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg.in
md5sum =
bafe9d0860658076c834edc00b7d8cb9
md5sum =
6a3b7b0af83e605628a5ea37c376019a
output = ${buildout:directory}/template.cfg
mode = 0644
...
...
@@ -39,7 +46,7 @@ mode = 0644
recipe = hexagonit.recipe.download
ignore-existing = true
url = ${:_profile_base_location_}/instance-cdn-test.cfg.jinja2
md5sum =
8711cdffa7c40b3e1c7d9b76217a0f8a
md5sum =
aa0254d43585c59f460a75a0feb5a7d0
mode = 0644
download-only = true
on-update = true
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