Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
c85a40bc
Commit
c85a40bc
authored
Jan 23, 2014
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Speed up lxc-test-usernic
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
Acked-by:
Serge E. Hallyn
<
serge.hallyn@ubuntu.com
>
parent
8ced4fd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lxc-test-usernic
src/tests/lxc-test-usernic
+4
-4
No files found.
src/tests/lxc-test-usernic
View file @
c85a40bc
...
...
@@ -27,7 +27,7 @@ cleanup() {
(
set
+e
lxc-stop
-n
usernic-c1
lxc-stop
-n
usernic-c1
-k
lxc-destroy
-n
usernic-c1
sed
-i
'/usernic-user/d'
/var/run/lxc/nics /etc/lxc/lxc-usernet
...
...
@@ -36,7 +36,7 @@ cleanup() {
brctl delbr usernic-br0
brctl delbr usernic-br1
run_cmd
"lxc-stop -n b1"
run_cmd
"lxc-stop -n b1
-k
"
pkill
-u
$(
id
-u
usernic-user
)
-9
rm
-rf
/tmp/usernic-test /home/usernic-user /run/user/
$(
id
-u
usernic-user
)
...
...
@@ -129,7 +129,7 @@ if run_cmd "lxc-user-nic $p1 veth usernic-br0 xx4"; then
fi
# Shut down and restart the container, should be able to assign more nics
run_cmd
"lxc-stop -n b1"
run_cmd
"lxc-stop -n b1
-k
"
run_cmd
"lxc-start -n b1 -d"
p1
=
$(
run_cmd
"lxc-info -n b1 -p -H"
)
...
...
@@ -138,7 +138,7 @@ if ! run_cmd "lxc-user-nic $p1 veth usernic-br0 xx5"; then
cleanup 1
fi
run_cmd
"lxc-stop -n b1"
run_cmd
"lxc-stop -n b1
-k
"
# Create a root-owned ns
lxc-create
-t
busybox
-n
usernic-c1
...
...
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