mirror of
git://github.com/lxc/lxc
synced 2025-09-01 19:49:29 +00:00
python api_test: Drop use of @LXCPATH@
The python api test script was using @LXCPATH@ for one of its checks. Now that the lxcpath is exposed by the lxc python module directly, this can be dropped and api_test.py can now become a simple python file without needing pre-processing by autoconf. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -66,7 +66,6 @@ src/lxc/lxc-wait
|
|||||||
src/lxc/legacy/lxc-ls
|
src/lxc/legacy/lxc-ls
|
||||||
|
|
||||||
src/python-lxc/build/
|
src/python-lxc/build/
|
||||||
src/python-lxc/examples/api_test.py
|
|
||||||
src/python-lxc/lxc/__init__.py
|
src/python-lxc/lxc/__init__.py
|
||||||
src/python-lxc/lxc/__pycache__/
|
src/python-lxc/lxc/__pycache__/
|
||||||
|
|
||||||
|
@@ -384,7 +384,6 @@ AC_CONFIG_FILES([
|
|||||||
|
|
||||||
src/python-lxc/Makefile
|
src/python-lxc/Makefile
|
||||||
src/python-lxc/lxc/__init__.py
|
src/python-lxc/lxc/__init__.py
|
||||||
src/python-lxc/examples/api_test.py
|
|
||||||
|
|
||||||
src/lua-lxc/Makefile
|
src/lua-lxc/Makefile
|
||||||
|
|
||||||
|
@@ -30,7 +30,6 @@ import uuid
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Some constants
|
# Some constants
|
||||||
LXC_PATH_LIB = "@LXCPATH@"
|
|
||||||
LXC_TEMPLATE = "ubuntu"
|
LXC_TEMPLATE = "ubuntu"
|
||||||
|
|
||||||
# Let's pick a random name, avoiding clashes
|
# Let's pick a random name, avoiding clashes
|
||||||
@@ -43,7 +42,7 @@ container = lxc.Container(CONTAINER_NAME)
|
|||||||
|
|
||||||
# A few basic checks of the current state
|
# A few basic checks of the current state
|
||||||
assert(container.config_file_name == "%s/%s/config" %
|
assert(container.config_file_name == "%s/%s/config" %
|
||||||
(LXC_PATH_LIB, CONTAINER_NAME))
|
(lxc.default_config_path, CONTAINER_NAME))
|
||||||
assert(not container.defined)
|
assert(not container.defined)
|
||||||
assert(container.init_pid == -1)
|
assert(container.init_pid == -1)
|
||||||
assert(container.name == CONTAINER_NAME)
|
assert(container.name == CONTAINER_NAME)
|
Reference in New Issue
Block a user