Merge lp:~jtv/maas-test/var-cache into lp:maas-test
Status: | Merged |
---|---|
Approved by: | Jeroen T. Vermeulen |
Approved revision: | 106 |
Merged at revision: | 105 |
Proposed branch: | lp:~jtv/maas-test/var-cache |
Merge into: | lp:maas-test |
Diff against target: |
273 lines (+35/-35) 8 files modified
docs/man/maas-test.8.rst (+6/-7) maastest/kvmfixture.py (+7/-7) maastest/proxyfixture.py (+1/-2) maastest/report.py (+2/-3) maastest/tests/test_kvmfixture.py (+6/-6) maastest/utils.py (+7/-1) man/maas-test.8 (+6/-7) packages.txt (+0/-2) |
To merge this branch: | bzr merge lp:~jtv/maas-test/var-cache |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Julian Edwards (community) | Approve | ||
Review via email: mp+200951@code.launchpad.net |
Commit message
Move ~/.config/maas-test into /var/cache/.
Description of the change
As agreed with Julian. This is not the complete change: we also agreed to move the pidfiles for polipo into /run. It all follows from the fact that we now run maas-test in its entirety as root, instead of sudo'ing all over the place: maas-test's state is now effectively global system state. This also resolves the nastiness of having ~/.config/
What you see here is not the full story; we also agreed to move the pidfiles into /var/run. I'm leaving that for my next branch. Some of the other items might fit in better with /var/lib, but we'll ignore that for now — the important thing is that you can delete /var/cache/
Some of the changes you'll see in the diff are:
* DEFAULT_STATE_DIR now provides a single shared, global default location.
* xdg is no longer needed.
* Documentation no longer says this stuff is in ~/.maas-test — we never updated that.
* Generated man page has been re-generated. Don't bother reviewing that part.
Jeroen
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
review: approve
Lovely, thank you. Minor gripes inline for things I thought of after
our call. Sorry ...
> maas-test. 8.rst' --- maas-test. 8.rst 2014-01-08 07:33:48 +0000 +++ maas-test. 8.rst 2014-01-09 05:13:48 +0000 @@ -108,8 +108,8 test/logs` . +By default, the results are also cache/maas- test/logs` .
> === modified file 'docs/man/
> docs/man/
> docs/man/
> @@ developers, by filing a Launchpad bug which includes the test
> results as an attachment.
>
> -By defaults the results will also be written to timestamped log
> files -under `~/.maas-
> written to timestamped log files under
> +`/var/
We should put them in /var/log/ Sorry I neglected to mention this before.
> maas-test` . maas-test/ logs`.
>
> Options @@ -188,7 +188,7 @@ test runs, but also caches a large
> amount of data on the testing system's filesystem. The proxy
> software used is `polipo`. The cache will be stored under -
> `~/.maas-test`. + `/var/cache/
>
> .. _`reporting options`:
>
> @@ -199,7 +199,7 @@ --log-results-only Write test results to a
> file, but don't upload them to Launchpad. Results will be written
> to a timestamped log file under - ~/.maas-test/logs. +
> `/var/cache/
/var/log/
> + :param ssh_key_dir: Optional directory in which to store
> the SSH keys + for connecting to this KVM instance.
> Defaults to the default state + directory.
This is a bit awkward. "Defaults to the default..." Can you be more
specific? I think it's ok to mention /var/cache.
> if log_dir is None: - log_dir = os.path.join( - save_config_ path('maas- test'), 'logs') +
> BaseDirectory.
> log_dir = DEFAULT_STATE_DIR
/var/log/maas-test
Lastly, check the packaging branch, you might be able to remove www.enigmail. net/
python-xdg as a dependency.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://
iEYEARECAAYFAlL OODgACgkQWhGlTF 8G/HdX2gCdHeAsE o+7rzLkZ1eMFoMT cbb/ YNAhMdASSk3AFf1 cp
zg8AnRUI4zs3807
=ZO+r
-----END PGP SIGNATURE-----