On 03/10/13 01:48, Jeremy Heiner wrote:
The hooks mechanism created here could potentially be used to write unit tests for other scenarios... For example: reinstalling to repair damaged files. The genhook would do the install (so the snapshot would match the desired final state), the snaphook would damage a file or two, and the reinstall-from-local-db would be the test action proper.
Jeremy Heiner (3): Add pmtest.rootjoin() and clean up some duplicate joins. Simplify pmtest.generate and .run API (removed pacman parameter). Added tests for -Q --check (both fast(files) and full(mtree)).
I'd appreciate if someone else can review these for me. I rarely deal with the test suite and my python knowledge is limited, so reviewing test suite patches takes me too much time. Allan