Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
zhifan huang
slapos
Commits
943cdd61
Commit
943cdd61
authored
Apr 14, 2022
by
zhifan huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use unshare to create new namesapce for run test
parent
233763ea
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
software/slapos-testing/buildout.hash.cfg
software/slapos-testing/buildout.hash.cfg
+1
-1
software/slapos-testing/instance.cfg
software/slapos-testing/instance.cfg
+1
-1
software/slapos-testing/software.cfg
software/slapos-testing/software.cfg
+8
-1
No files found.
software/slapos-testing/buildout.hash.cfg
View file @
943cdd61
...
@@ -15,4 +15,4 @@
...
@@ -15,4 +15,4 @@
[template]
[template]
filename = instance.cfg
filename = instance.cfg
md5sum =
df528e38ae84578f7001e29e41f89222
md5sum =
94ca09d9456b021cff29c4860a4f1549
software/slapos-testing/instance.cfg
View file @
943cdd61
...
@@ -195,7 +195,7 @@ template = inline:
...
@@ -195,7 +195,7 @@ template = inline:
# )
# )
TestCase(
TestCase(
"re6stnet",
"re6stnet",
['
python', '-m', 'unittest', 'discover', '-v
'],
['
unshare', '-Umnr', 'bash', '-c', 'mount -t sysfs sysfs /sys && python -m unittest discover
'],
cwd="""$${re6stnet:location}/re6st/tests""",
cwd="""$${re6stnet:location}/re6st/tests""",
summaryf=UnitTest.summary,
summaryf=UnitTest.summary,
)
)
...
...
software/slapos-testing/software.cfg
View file @
943cdd61
...
@@ -143,6 +143,7 @@ eggs +=
...
@@ -143,6 +143,7 @@ eggs +=
${re6stnet-setup:egg}
${re6stnet-setup:egg}
zope.testing
zope.testing
supervisor
supervisor
pathlib2
[eggs/scripts]
[eggs/scripts]
recipe = zc.recipe.egg
recipe = zc.recipe.egg
...
@@ -214,7 +215,8 @@ repository = https://lab.nexedi.com/nexedi/rubygemsrecipe.git
...
@@ -214,7 +215,8 @@ repository = https://lab.nexedi.com/nexedi/rubygemsrecipe.git
[re6stnet-repository]
[re6stnet-repository]
<= git-clone-repository
<= git-clone-repository
repository = https://lab.nexedi.com/nexedi/re6stnet.git
branch=net_test
repository = https://lab.nexedi.com/zf.huang/re6stnet.git
[template]
[template]
...
@@ -263,3 +265,8 @@ urllib3 = 1.24.1
...
@@ -263,3 +265,8 @@ urllib3 = 1.24.1
pathlib = 1.0.1
pathlib = 1.0.1
psycopg2 = 2.8.6
psycopg2 = 2.8.6
miniupnpc = 1.9
miniupnpc = 1.9
passfd = 1.0.2
python-unshare = 0.2
nemu = 0.3.1
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