History log of /external/autotest/site_utils/lxc/container_bucket_unittest.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c0ce5456d710eb5f9410e183fe768c216509e4b1 11-Jul-2017 Ben Kwa <kenobi@google.com> autotest: reland recent lxc changes

This reverts commit 1b617599f43e88a40eabbd2570e90649c0ede990, which effectively
relands the following commits:

d8542a8d5 Address container differences on moblab vs shard.
d3498cc07 Create Zygote, a configurable container.
966db080d Create a new module for lxc code.

i.e.
https://chromium-review.googlesource.com/c/558015/
https://chromium-review.googlesource.com/c/557061/
https://chromium-review.googlesource.com/c/538127/

It also fixes the problem introduced by those CLs, and adds new unittests (see
new container_unittest.py) for those conditions.

BUG=chromium:741139, chromium:738598, chromium:720219
TEST=sudo python site_utils/lxc/container_unittest.py -v
TEST=sudo python site_utils/lxc/lxc_functional_test.py -v
TEST=sudo python site_utils/lxc/zygote_unittest.py -v
TEST=sudo python site_utils/lxc/container_bucket_unittest.py -v

Change-Id: I6c1c23426a4baf4e12135c4ef8b25fdefabbf46b
Reviewed-on: https://chromium-review.googlesource.com/566741
Commit-Ready: Ben Kwa <kenobi@chromium.org>
Tested-by: Ben Kwa <kenobi@chromium.org>
Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/site_utils/lxc/container_bucket_unittest.py
1b617599f43e88a40eabbd2570e90649c0ede990 12-Jul-2017 Aviv Keshet <akeshet@chromium.org> autotest: revert recent lxc changes

This CL reverts d8542a8d5620deb087af921d08a03e70baa446e7 and
966db080d632ab2b7c6534e717762173dad3938b.

which correspond to
https://chromium-review.googlesource.com/c/558015/ and
https://chromium-review.googlesource.com/c/538127/

BUG=chromium:741139, chromium:738598, chromium:720219
TEST=None

Change-Id: I478804455eca0775b04ede5152d8345408ee9468
Reviewed-on: https://chromium-review.googlesource.com/567057
Tested-by: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Xixuan Wu <xixuan@chromium.org>
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/site_utils/lxc/container_bucket_unittest.py
d8542a8d5620deb087af921d08a03e70baa446e7 01-Jul-2017 Ben Kwa <kenobi@google.com> Address container differences on moblab vs shard.

Moblab and shards use different images, and the container setup code
works for the latter but not the former, specifically when specifying a
custom lxc path. This causes unit tests to fail on moblab.

Fix the offending code, and add tests.

BUG=chromium:738598

TEST=sudo python site_utils/lxc/container_bucket_unittest.py

Change-Id: I971e42f6054f094ceb5de6c0203f198847e5a11e
Reviewed-on: https://chromium-review.googlesource.com/558015
Commit-Ready: Ben Kwa <kenobi@chromium.org>
Tested-by: Ben Kwa <kenobi@chromium.org>
Reviewed-by: Ben Kwa <kenobi@chromium.org>
/external/autotest/site_utils/lxc/container_bucket_unittest.py
d3498cc07201dd7c8ee215ab3825a9d8e7f8d339 29-Jun-2017 Ben Kwa <kenobi@google.com> Create Zygote, a configurable container.

Create a new subclass of Container called Zygote. Zygote adds support
for a host directory, which is a shared bind-mount that enables the host
system to bind/copy additional files/directories into a Container after
it has been started.

BUG=chromium:720219

TEST=sudo python lxc_functional_test.py -v
2017-06-29 15:07:03,348 All tests passed.

TEST=sudo python zygote_unittest.py -v
Ran 8 tests in 153.343s
OK (skipped=1)

Change-Id: I5fbcd31edd1e6fc34b6531640cbf58a2f34b9c18
Reviewed-on: https://chromium-review.googlesource.com/557061
Commit-Ready: Ben Kwa <kenobi@chromium.org>
Tested-by: Ben Kwa <kenobi@chromium.org>
Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/site_utils/lxc/container_bucket_unittest.py