2
0
mirror of git://github.com/lxc/lxc synced 2025-08-31 07:59:36 +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:
Stéphane Graber
2013-03-01 11:12:20 -05:00
parent 0e21ea4b15
commit 1cb4260d10
3 changed files with 1 additions and 4 deletions

1
.gitignore vendored
View File

@@ -66,7 +66,6 @@ src/lxc/lxc-wait
src/lxc/legacy/lxc-ls
src/python-lxc/build/
src/python-lxc/examples/api_test.py
src/python-lxc/lxc/__init__.py
src/python-lxc/lxc/__pycache__/

View File

@@ -384,7 +384,6 @@ AC_CONFIG_FILES([
src/python-lxc/Makefile
src/python-lxc/lxc/__init__.py
src/python-lxc/examples/api_test.py
src/lua-lxc/Makefile

View File

@@ -30,7 +30,6 @@ import uuid
import sys
# Some constants
LXC_PATH_LIB = "@LXCPATH@"
LXC_TEMPLATE = "ubuntu"
# 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
assert(container.config_file_name == "%s/%s/config" %
(LXC_PATH_LIB, CONTAINER_NAME))
(lxc.default_config_path, CONTAINER_NAME))
assert(not container.defined)
assert(container.init_pid == -1)
assert(container.name == CONTAINER_NAME)