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
57221f67
Commit
57221f67
authored
Aug 25, 2014
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Copy the download cache when available [v2]
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
Acked-by:
Serge E. Hallyn
<
serge.hallyn@ubuntu.com
>
parent
9a189b09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
lxc-test-unpriv
src/tests/lxc-test-unpriv
+6
-0
lxc-test-usernic.in
src/tests/lxc-test-usernic.in
+7
-0
No files found.
src/tests/lxc-test-unpriv
View file @
57221f67
...
@@ -114,6 +114,12 @@ else
...
@@ -114,6 +114,12 @@ else
done
done
fi
fi
# Copy the download template cache if available
run_cmd
mkdir
-p
$HDIR
/.cache/lxc
[
-d
/var/cache/lxc/download
]
&&
\
cp
-R
/var/cache/lxc/download
$HDIR
/.cache/lxc
&&
\
chown
-R
$TUSER
:
$HDIR
/.cache/lxc
run_cmd lxc-create
-t
download
-n
c1
--
-d
ubuntu
-r
trusty
-a
$ARCH
run_cmd lxc-create
-t
download
-n
c1
--
-d
ubuntu
-r
trusty
-a
$ARCH
run_cmd lxc-start
-n
c1
-d
run_cmd lxc-start
-n
c1
-d
...
...
src/tests/lxc-test-usernic.in
View file @
57221f67
...
@@ -109,6 +109,13 @@ fi
...
@@ -109,6 +109,13 @@ fi
mkdir
-p
/run/user/
$(
id
-u
usernic-user
)
mkdir
-p
/run/user/
$(
id
-u
usernic-user
)
chown
-R
usernic-user: /run/user/
$(
id
-u
usernic-user
)
/home/usernic-user
chown
-R
usernic-user: /run/user/
$(
id
-u
usernic-user
)
/home/usernic-user
# Copy the download template cache if available
run_cmd
"mkdir -p /home/usernic-user/.cache/lxc"
[
-d
/var/cache/lxc/download
]
&&
\
cp
-R
/var/cache/lxc/download /home/usernic-user/.cache/lxc
&&
\
chown
-R
usernic-user: /home/usernic-user/.cache/lxc
# Create two test bridges
# Create two test bridges
brctl addbr usernic-br0
brctl addbr usernic-br0
brctl addbr usernic-br1
brctl addbr usernic-br1
...
...
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