Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
Lu Xu
slapos.toolbox
Commits
e59f85be
Commit
e59f85be
authored
Jul 26, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grammar nazi
parent
c0cf24d1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
slapos/runner/runnertest.py
slapos/runner/runnertest.py
+8
-5
slapos/runner/utils.py
slapos/runner/utils.py
+5
-5
No files found.
slapos/runner/runnertest.py
View file @
e59f85be
...
...
@@ -292,7 +292,8 @@ class SlaprunnerTestCase(unittest.TestCase):
#Check git configuration
config
=
open
(
os
.
path
.
join
(
realFolder
,
'.git/config'
)).
read
()
assert
"slaprunner@nexedi.com"
in
config
and
"Slaprunner test"
in
config
#Checkout to slaprunner branch, this supose that branch slaprunner exit
# Checkout to slaprunner branch, this supposes that branch slaprunner exit
response
=
loadJson
(
self
.
app
.
post
(
'/newBranch'
,
data
=
dict
(
project
=
folder
,
...
...
@@ -331,8 +332,9 @@ class SlaprunnerTestCase(unittest.TestCase):
assert
software
in
currentSR
self
.
assertFalse
(
isInstanceRunning
(
self
.
app
.
config
))
self
.
assertFalse
(
isSoftwareRunning
(
self
.
app
.
config
))
#Slapproxy process is supose to be started
#newSoftware = os.path.join(self.software, 'slaprunner-test')
# Slapproxy process is supposed to be started
# newSoftware = os.path.join(self.software, 'slaprunner-test')
self
.
proxyStatus
(
True
)
self
.
stopSlapproxy
()
self
.
logout
()
...
...
@@ -358,8 +360,9 @@ class SlaprunnerTestCase(unittest.TestCase):
content
=
softwareRelease
),
follow_redirects
=
True
))
self
.
assertEqual
(
response
[
'result'
],
""
)
#Compile software and wait until slapgrid it end
#this is supose to use curent SR
# Compile software and wait until slapgrid ends
# this is supposed to use current SR
response
=
loadJson
(
self
.
app
.
post
(
'/runSoftwareProfile'
,
data
=
dict
(),
follow_redirects
=
True
))
...
...
slapos/runner/utils.py
View file @
e59f85be
...
...
@@ -265,8 +265,8 @@ def runSoftwareWithLock(config):
def
config_SR_folder
(
config
):
"""Create a symbolik link for each folder in software folder. That allow
user to customize software release folder"""
"""Create a symbolik link for each folder in software folder. That allow
s
the
user to customize software release folder"""
list
=
[]
# XXX-Marco do not shadow 'list'
config_name
=
'slaprunner.config'
...
...
@@ -280,8 +280,8 @@ def config_SR_folder(config):
folder_list
=
os
.
listdir
(
config
[
'software_root'
])
if
len
(
folder_list
)
<
1
:
return
curent_project
=
open
(
os
.
path
.
join
(
config
[
'etc_dir'
],
".project"
)).
read
()
projects
=
cur
ent_project
.
split
(
"/"
)
cur
r
ent_project
=
open
(
os
.
path
.
join
(
config
[
'etc_dir'
],
".project"
)).
read
()
projects
=
cur
rent_project
.
split
(
'/'
)
name
=
projects
[
len
(
projects
)
-
2
]
for
folder
in
folder_list
:
if
folder
in
list
:
...
...
@@ -297,7 +297,7 @@ def config_SR_folder(config):
os
.
symlink
(
source
,
destination
)
#write config file
cf
=
open
(
cfg
,
'w'
)
cf
.
write
(
curent_project
+
"#"
+
folder
)
cf
.
write
(
cur
r
ent_project
+
"#"
+
folder
)
cf
.
close
()
...
...
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