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
809c5777
Commit
809c5777
authored
Jan 11, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_standalone: pass shared parts from testrunner to standalone
These are used in check software tests.
parent
b6b7d3c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
slapos/tests/test_standalone.py
slapos/tests/test_standalone.py
+8
-1
No files found.
slapos/tests/test_standalone.py
View file @
809c5777
...
@@ -306,7 +306,14 @@ class SlapOSStandaloneTestCase(unittest.TestCase):
...
@@ -306,7 +306,14 @@ class SlapOSStandaloneTestCase(unittest.TestCase):
working_dir
=
tempfile
.
mkdtemp
(
prefix
=
__name__
)
working_dir
=
tempfile
.
mkdtemp
(
prefix
=
__name__
)
self
.
addCleanup
(
slapos
.
util
.
rmtree
,
working_dir
)
self
.
addCleanup
(
slapos
.
util
.
rmtree
,
working_dir
)
self
.
standalone
=
StandaloneSlapOS
(
self
.
standalone
=
StandaloneSlapOS
(
working_dir
,
SLAPOS_TEST_IPV4
,
SLAPOS_TEST_PORT
)
working_dir
,
SLAPOS_TEST_IPV4
,
SLAPOS_TEST_PORT
,
shared_part_list
=
[
os
.
path
.
expanduser
(
p
)
for
p
in
os
.
environ
.
get
(
'SLAPOS_TEST_SHARED_PART_LIST'
,
''
).
split
(
os
.
pathsep
)
if
p
],
)
if
self
.
_auto_stop_standalone
:
if
self
.
_auto_stop_standalone
:
self
.
addCleanup
(
self
.
standalone
.
stop
)
self
.
addCleanup
(
self
.
standalone
.
stop
)
self
.
standalone
.
format
(
1
,
SLAPOS_TEST_IPV4
,
SLAPOS_TEST_IPV6
)
self
.
standalone
.
format
(
1
,
SLAPOS_TEST_IPV4
,
SLAPOS_TEST_IPV6
)
...
...
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