Merge lp:~frankban/lpsetup/load-library into lp:lpsetup
| Status: | Merged |
|---|---|
| Approved by: | Brad Crittenden on 2012-05-10 |
| Approved revision: | 23 |
| Merged at revision: | 23 |
| Proposed branch: | lp:~frankban/lpsetup/load-library |
| Merge into: | lp:lpsetup |
| Diff against target: |
109 lines (+66/-1) 2 files modified
lplxcip/lxcip.py (+29/-1) lplxcip/tests/test_helpers.py (+37/-0) |
| To merge this branch: | bzr merge lp:~frankban/lpsetup/load-library |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brad Crittenden (community) | code | 2012-05-09 | Approve on 2012-05-10 |
|
Review via email:
|
|||
Description of the Change
== Changes ==
Changed the way liblxc is loaded.
If the library is not found in /usr/lib/lxc/, it is searched inside /usr/lib/
I don't have the environment variable $DEB_HOST_MULTIARCH in my system, but I've found that it is easily retrievable using dpkg-architecture, (see http://
== Tests ==
$ cd lplxcip/ && sudo nosetests -v
test_error (tests.
test_host_
test_library_
test_usual_path (tests.
test_output_
test_output_
test_redirection (tests.
test_as_root (tests.
test_as_
test_failure (tests.
test_success (tests.
test_all_interfaces (tests.
test_container_
test_container_
test_exclude (tests.
test_interfaces
test_not_root (tests.
test_invalid_
test_invalid_name (tests.
test_invalid_pid (tests.
test_ip_address (tests.
test_loopback (tests.
test_multiple_
test_not_root (tests.
test_race_condition (tests.
test_restart (tests.
test_assertion (tests.
test_assertion_
test_assertion_
test_assertion_
test_create (tests.
test_destroy (tests.
test_start (tests.
test_stop (tests.
test_write_config (tests.
test_mock (tests.
test_failure (tests.
test_success (tests.
test_stopped (tests.
test_with_errors (tests.
-------
Ran 40 tests in 21.188s
OK

This change looks good Francesco. Thanks.