61323f34d0fab3baa26d63ec19625b6d93da185a |
|
02-Feb-2018 |
Daniel Erat <derat@chromium.org> |
autotest: Make lxc_config_unittest.py ignore mounts. Make lxc_config_unittest.py skip over mounts in the default ssp_deploy_config.json file instead of failing to parse them as config file objects. (There aren't any default mounts defined currently.) BUG=chromium:782515 TEST=none Change-Id: I25f294c6829d3d5d2e5ce5e97eb45d1cd5a7d168 Reviewed-on: https://chromium-review.googlesource.com/898482 Commit-Ready: Dan Erat <derat@chromium.org> Tested-by: Dan Erat <derat@chromium.org> Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/site_utils/lxc/lxc_config_unittest.py
|
b0f14169490c1d63d9246d8d7f6ad100be7a1551 |
|
05-Sep-2017 |
Ben Kwa <kenobi@google.com> |
[autotest] Fix host-dir permissions. Change the permissions on the shared host dir and the individual host dirs so they aren't owned by root, and are writable by regular processes (e.g. the autoserv process). This is necessary in order to enable autoserv to configure the zygotes. - Set mode 777 on the shared host dir. - Don't use sudo to create host dirs and install SSPs. - Don't use sudo (where possible) in unittest code. - Put a new check in unittests to ensure they're not run as root. Running unit tests as root will obscure some of these permissions issues. - Factor unittest setup code so it's all in one place. BUG=chromium:762112 TEST=base_image_unittest.py -v TEST=container_bucket_unittest.py -v TEST=container_unittest.py -v TEST=lxc_config_unittest.py -v TEST=lxc_functional_test.py -v TEST=shared_host_dir_unittest.py -v TEST=zygote_unittest.py -v Change-Id: Idfde131edca57ab563e0bb1923103196728045ec Reviewed-on: https://chromium-review.googlesource.com/651086 Commit-Ready: Ben Kwa <kenobi@chromium.org> Tested-by: Ben Kwa <kenobi@chromium.org> Reviewed-by: Ilja H. Friedel <ihf@chromium.org> Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/site_utils/lxc/lxc_config_unittest.py
|
55293cd026071656b3235b34e09dfc0004a5d511 |
|
26-Jul-2017 |
Ben Kwa <kenobi@google.com> |
[autotest] Generalize container host mounts. - Generalize the host mount so it doesn't just enable mounting content into the /usr/local/autotest directory in the container. - Factor out code for copying files into the container. - Use the new host mount to implement copying files into the zygote. - Reimplement control file installation and config deployment using the new copy method. - Add tests. BUG=chromium:720219 TEST=sudo python container_unittest.py -v TEST=sudo python container_bucket_unittest.py -v TEST=sudo python zygote_unittest.py -v TEST=sudo python lxc_config_unittest.py -v TEST=sudo python lxc_functional_test.py -v Change-Id: I7f2fa48760337fe9d20cc6518879adf90d72ead0 Reviewed-on: https://chromium-review.googlesource.com/586049 Commit-Ready: Ben Kwa <kenobi@chromium.org> Tested-by: Ben Kwa <kenobi@chromium.org> Reviewed-by: Aviv Keshet <akeshet@chromium.org>
/external/autotest/site_utils/lxc/lxc_config_unittest.py
|
b0ec0b28315ec4d11f78db70b5aa7ab002414c12 |
|
17-Jul-2017 |
Ben Kwa <kenobi@google.com> |
[autotest] Factor mounting code into lxc_config. Move the mount management into the DeployConfigManager, to reduce coupling between it, the Container, and the ContainerBucket. Add tests. BUG=chromium:720219 TEST=sudo python lxc_config_unittest.py -v Change-Id: I6abd539bab65760330cbdc99487557bd349052f4 Reviewed-on: https://chromium-review.googlesource.com/574974 Commit-Ready: Ben Kwa <kenobi@chromium.org> Tested-by: Ben Kwa <kenobi@chromium.org> Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
/external/autotest/site_utils/lxc/lxc_config_unittest.py
|
966db080d632ab2b7c6534e717762173dad3938b |
|
05-Jun-2017 |
Ben Kwa <kenobi@google.com> |
Create a new module for lxc code. Create a new python module for lxc code. Move lxc.py and related code into that module. Script-style functionality in site_utils/lxc.py and lxc_cleanup.py was left as-is. BUG=chromium:720219 TEST=sudo python site_utils/lxc_functional_test.py -v 2017-06-15 15:29:52,700 All tests passed. TEST=Install autotest-server code onto moblab, run a test. Test runs successfully. Change-Id: I7b8400db64594f4d1268a62838ac379e713738c1 Reviewed-on: https://chromium-review.googlesource.com/538127 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/lxc_config_unittest.py
|