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
e403a064
Unverified
Commit
e403a064
authored
Feb 17, 2014
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Use trusty instead of lucid
This is required so the tests actually have a chance of passing on arm64 and ppc64el. Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
fe1f672f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
createtest.c
src/tests/createtest.c
+2
-2
get_item.c
src/tests/get_item.c
+2
-2
shutdowntest.c
src/tests/shutdowntest.c
+2
-2
No files found.
src/tests/createtest.c
View file @
e403a064
...
@@ -50,8 +50,8 @@ int main(int argc, char *argv[])
...
@@ -50,8 +50,8 @@ int main(int argc, char *argv[])
}
}
c
->
set_config_item
(
c
,
"lxc.network.link"
,
"lxcbr0"
);
c
->
set_config_item
(
c
,
"lxc.network.link"
,
"lxcbr0"
);
c
->
set_config_item
(
c
,
"lxc.network.flags"
,
"up"
);
c
->
set_config_item
(
c
,
"lxc.network.flags"
,
"up"
);
if
(
!
c
->
createl
(
c
,
"ubuntu"
,
NULL
,
NULL
,
0
,
"-r"
,
"
lucid
"
,
NULL
))
{
if
(
!
c
->
createl
(
c
,
"ubuntu"
,
NULL
,
NULL
,
0
,
"-r"
,
"
trusty
"
,
NULL
))
{
fprintf
(
stderr
,
"%d: failed to create a
lucid
container
\n
"
,
__LINE__
);
fprintf
(
stderr
,
"%d: failed to create a
trusty
container
\n
"
,
__LINE__
);
goto
out
;
goto
out
;
}
}
...
...
src/tests/get_item.c
View file @
e403a064
...
@@ -171,8 +171,8 @@ int main(int argc, char *argv[])
...
@@ -171,8 +171,8 @@ int main(int argc, char *argv[])
ret
=
1
;
ret
=
1
;
goto
out
;
goto
out
;
}
}
if
(
!
c
->
createl
(
c
,
"ubuntu"
,
NULL
,
NULL
,
0
,
"-r"
,
"
lucid
"
,
NULL
))
{
if
(
!
c
->
createl
(
c
,
"ubuntu"
,
NULL
,
NULL
,
0
,
"-r"
,
"
trusty
"
,
NULL
))
{
fprintf
(
stderr
,
"%d: failed to create a
lucid
container
\n
"
,
__LINE__
);
fprintf
(
stderr
,
"%d: failed to create a
trusty
container
\n
"
,
__LINE__
);
ret
=
1
;
ret
=
1
;
goto
out
;
goto
out
;
}
}
...
...
src/tests/shutdowntest.c
View file @
e403a064
...
@@ -51,8 +51,8 @@ int main(int argc, char *argv[])
...
@@ -51,8 +51,8 @@ int main(int argc, char *argv[])
}
}
c
->
set_config_item
(
c
,
"lxc.network.link"
,
"lxcbr0"
);
c
->
set_config_item
(
c
,
"lxc.network.link"
,
"lxcbr0"
);
c
->
set_config_item
(
c
,
"lxc.network.flags"
,
"up"
);
c
->
set_config_item
(
c
,
"lxc.network.flags"
,
"up"
);
if
(
!
c
->
createl
(
c
,
"ubuntu"
,
NULL
,
NULL
,
0
,
"-r"
,
"
lucid
"
,
NULL
))
{
if
(
!
c
->
createl
(
c
,
"ubuntu"
,
NULL
,
NULL
,
0
,
"-r"
,
"
trusty
"
,
NULL
))
{
fprintf
(
stderr
,
"%d: failed to create a
lucid
container
\n
"
,
__LINE__
);
fprintf
(
stderr
,
"%d: failed to create a
trusty
container
\n
"
,
__LINE__
);
goto
out
;
goto
out
;
}
}
...
...
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