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>
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__/
src/python-lxc/Makefile
src/python-lxc/lxc/__init__.py
- src/python-lxc/examples/api_test.py
src/lua-lxc/Makefile
import sys
# Some constants
-LXC_PATH_LIB = "@LXCPATH@"
LXC_TEMPLATE = "ubuntu"
# Let's pick a random name, avoiding clashes
# 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)