Commit 943cdd61 authored by zhifan huang's avatar zhifan huang

use unshare to create new namesapce for run test

parent 233763ea
......@@ -15,4 +15,4 @@
[template]
filename = instance.cfg
md5sum = df528e38ae84578f7001e29e41f89222
md5sum = 94ca09d9456b021cff29c4860a4f1549
......@@ -195,7 +195,7 @@ template = inline:
# )
TestCase(
"re6stnet",
['python', '-m', 'unittest', 'discover', '-v'],
['unshare', '-Umnr', 'bash', '-c', 'mount -t sysfs sysfs /sys && python -m unittest discover'],
cwd="""$${re6stnet:location}/re6st/tests""",
summaryf=UnitTest.summary,
)
......
......@@ -143,6 +143,7 @@ eggs +=
${re6stnet-setup:egg}
zope.testing
supervisor
pathlib2
[eggs/scripts]
recipe = zc.recipe.egg
......@@ -214,7 +215,8 @@ repository = https://lab.nexedi.com/nexedi/rubygemsrecipe.git
[re6stnet-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]
......@@ -263,3 +265,8 @@ urllib3 = 1.24.1
pathlib = 1.0.1
psycopg2 = 2.8.6
miniupnpc = 1.9
passfd = 1.0.2
python-unshare = 0.2
nemu = 0.3.1
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment