Method do_mash() of MashDirective now accepts outdir as its argument -- path to directory where repo is created, if not specified rpmdir is used as before.
Details
- Reviewers
tflink mkrizek jskladan - Maniphest Tasks
- T162: Specify repodata output for mash directive
$ py.test -F (with the new tests)
Diff Detail
- Repository
- rLTRN libtaskotron
- Branch
- feature/T162
- Lint
No Linters Available - Unit
No Unit Test Coverage
Other than the comments, it looks OK. I'd try to clean-up after the tests, but I'm not sure whether it is really necessary.
libtaskotron/directives/mash_directive.py | ||
---|---|---|
83 | Please change the logic here, so the rpm files are not copied, but create symlinks instead. We already strive with disk space on the test slaves, so having two copies of the same files does not really make sense. I'm not sure, though, whether mash will work on just symlinks. | |
96 | It might make more sense to return the "actuall" outdir ( (rpmdir if not outdir else outdir) ) here. And also then return it as a result of the process() method. | |
111 | I know that dict.get() returns None on non-existing key, but I'd rather have it explicit: outdir = input_data.get('outdir', None) |
Please change the logic here, so the rpm files are not copied, but create symlinks instead. We already strive with disk space on the test slaves, so having two copies of the same files does not really make sense. I'm not sure, though, whether mash will work on just symlinks.