Merge lp:~roadmr/checkbox/lxc-fix-permissions-after-provisioning-fail into lp:checkbox
Status: | Merged |
---|---|
Approved by: | Zygmunt Krynicki |
Approved revision: | 3706 |
Merged at revision: | 3706 |
Proposed branch: | lp:~roadmr/checkbox/lxc-fix-permissions-after-provisioning-fail |
Merge into: | lp:checkbox |
Diff against target: |
54 lines (+17/-13) 1 file modified
test-in-lxc.sh (+17/-13) |
To merge this branch: | bzr merge lp:~roadmr/checkbox/lxc-fix-permissions-after-provisioning-fail |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zygmunt Krynicki (community) | Approve | ||
Review via email: mp+256589@code.launchpad.net |
Commit message
test-in-lxc: Fix file permissions if provisioning fails.
Writing files in the source tree during the provisioning phase is
not recommended, but if it happens, ensure that, after a possible
provisioning failure, permissions are reset to those of the user who
owned the original tree (using test-in-lxc.sh as reference).
Previously we would only fix file permissions after running the tests,
and the provisioning phase was assumed not to leave possibly-
files in the source directory.
Description of the change
test-in-lxc: Fix file permissions if provisioning fails.
Writing files in the source tree during the provisioning phase is
not recommended, but if it happens, ensure that, after a possible
provisioning failure, permissions are reset to those of the user who
owned the original tree (using test-in-lxc.sh as reference).
Previously we would only fix file permissions after running the tests,
and the provisioning phase was assumed not to leave possibly-
files in the source directory.
+1