Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Léo-Paul Géneau
slapos.core
Commits
00346d06
Commit
00346d06
authored
Sep 18, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pyflakes
parent
6c991e4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
slapos/tests/slapgrid.py
slapos/tests/slapgrid.py
+11
-11
No files found.
slapos/tests/slapgrid.py
View file @
00346d06
...
@@ -802,7 +802,7 @@ class TestSlapgridCPWithMasterPromise(MasterMixin, unittest.TestCase):
...
@@ -802,7 +802,7 @@ class TestSlapgridCPWithMasterPromise(MasterMixin, unittest.TestCase):
self
.
started
=
False
self
.
started
=
False
instance_path
=
self
.
_create_instance
(
'0'
)
instance_path
=
self
.
_create_instance
(
'0'
)
s
oftware_hash
=
s
elf
.
_bootstrap
()
self
.
_bootstrap
()
promise_path
=
os
.
path
.
join
(
instance_path
,
'etc'
,
'promise'
)
promise_path
=
os
.
path
.
join
(
instance_path
,
'etc'
,
'promise'
)
os
.
makedirs
(
promise_path
)
os
.
makedirs
(
promise_path
)
...
@@ -863,7 +863,7 @@ exit 127""" % {'worked_file': worked_file})
...
@@ -863,7 +863,7 @@ exit 127""" % {'worked_file': worked_file})
self
.
started
=
False
self
.
started
=
False
instance_path
=
self
.
_create_instance
(
'0'
)
instance_path
=
self
.
_create_instance
(
'0'
)
s
oftware_hash
=
s
elf
.
_bootstrap
()
self
.
_bootstrap
()
promise_path
=
os
.
path
.
join
(
instance_path
,
'etc'
,
'promise'
)
promise_path
=
os
.
path
.
join
(
instance_path
,
'etc'
,
'promise'
)
os
.
makedirs
(
promise_path
)
os
.
makedirs
(
promise_path
)
...
@@ -928,7 +928,7 @@ exit 0""" % {'worked_file': worked_file})
...
@@ -928,7 +928,7 @@ exit 0""" % {'worked_file': worked_file})
self
.
started
=
False
self
.
started
=
False
instance_path
=
self
.
_create_instance
(
'0'
)
instance_path
=
self
.
_create_instance
(
'0'
)
s
oftware_hash
=
s
elf
.
_bootstrap
()
self
.
_bootstrap
()
promise_path
=
os
.
path
.
join
(
instance_path
,
'etc'
,
'promise'
)
promise_path
=
os
.
path
.
join
(
instance_path
,
'etc'
,
'promise'
)
os
.
makedirs
(
promise_path
)
os
.
makedirs
(
promise_path
)
...
@@ -996,7 +996,7 @@ exit 127""" % {'worked_file': worked_file})
...
@@ -996,7 +996,7 @@ exit 127""" % {'worked_file': worked_file})
self
.
started
=
False
self
.
started
=
False
instance_path
=
self
.
_create_instance
(
'0'
)
instance_path
=
self
.
_create_instance
(
'0'
)
s
oftware_hash
=
s
elf
.
_bootstrap
()
self
.
_bootstrap
()
promise_path
=
os
.
path
.
join
(
instance_path
,
'etc'
,
'promise'
)
promise_path
=
os
.
path
.
join
(
instance_path
,
'etc'
,
'promise'
)
os
.
makedirs
(
promise_path
)
os
.
makedirs
(
promise_path
)
...
@@ -1058,7 +1058,7 @@ exit 0""" % {'worked_file': worked_file})
...
@@ -1058,7 +1058,7 @@ exit 0""" % {'worked_file': worked_file})
self
.
started
=
False
self
.
started
=
False
instance_path
=
self
.
_create_instance
(
'0'
)
instance_path
=
self
.
_create_instance
(
'0'
)
s
oftware_hash
=
s
elf
.
_bootstrap
()
self
.
_bootstrap
()
promise_path
=
os
.
path
.
join
(
instance_path
,
'etc'
,
'promise'
)
promise_path
=
os
.
path
.
join
(
instance_path
,
'etc'
,
'promise'
)
os
.
makedirs
(
promise_path
)
os
.
makedirs
(
promise_path
)
...
@@ -1130,7 +1130,7 @@ exit 0""" % {'worked_file': worked_file_2})
...
@@ -1130,7 +1130,7 @@ exit 0""" % {'worked_file': worked_file_2})
self
.
started
=
False
self
.
started
=
False
instance_path
=
self
.
_create_instance
(
'0'
)
instance_path
=
self
.
_create_instance
(
'0'
)
s
oftware_hash
=
s
elf
.
_bootstrap
()
self
.
_bootstrap
()
promise_path
=
os
.
path
.
join
(
instance_path
,
'etc'
,
'promise'
)
promise_path
=
os
.
path
.
join
(
instance_path
,
'etc'
,
'promise'
)
os
.
makedirs
(
promise_path
)
os
.
makedirs
(
promise_path
)
...
@@ -1144,11 +1144,11 @@ exit 0""" % {'worked_file': worked_file_2})
...
@@ -1144,11 +1144,11 @@ exit 0""" % {'worked_file': worked_file_2})
with
open
(
promise
,
'w'
)
as
f
:
with
open
(
promise
,
'w'
)
as
f
:
f
.
write
(
"""#!/usr/bin/env sh
f
.
write
(
"""#!/usr/bin/env sh
touch "%(worked_file)s"
touch "%(worked_file)s"
if [ ! -f %(lockfile)s ]
if [ ! -f %(lockfile)s ]
then
then
touch "%(lockfile)s"
touch "%(lockfile)s"
exit 0
exit 0
else
else
exit 127
exit 127
fi"""
%
{
'worked_file'
:
worked_file
,
'lockfile'
:
lockfile
})
fi"""
%
{
'worked_file'
:
worked_file
,
'lockfile'
:
lockfile
})
os
.
chmod
(
promise
,
0777
)
os
.
chmod
(
promise
,
0777
)
...
@@ -1203,7 +1203,7 @@ fi""" % {'worked_file': worked_file, 'lockfile': lockfile})
...
@@ -1203,7 +1203,7 @@ fi""" % {'worked_file': worked_file, 'lockfile': lockfile})
self
.
started
=
False
self
.
started
=
False
instance_path
=
self
.
_create_instance
(
'0'
)
instance_path
=
self
.
_create_instance
(
'0'
)
s
oftware_hash
=
s
elf
.
_bootstrap
()
self
.
_bootstrap
()
promise_path
=
os
.
path
.
join
(
instance_path
,
'etc'
,
'promise'
)
promise_path
=
os
.
path
.
join
(
instance_path
,
'etc'
,
'promise'
)
os
.
makedirs
(
promise_path
)
os
.
makedirs
(
promise_path
)
...
...
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