extfs: rpm: make it testable.
commit97bc2af3b2aee7085294beb41c62998638eb67e8
authorMooffie <mooffie@gmail.com>
Sun, 1 Jan 2017 16:19:48 +0000 (1 18:19 +0200)
committerMooffie <mooffie@gmail.com>
Mon, 16 Jan 2017 11:58:07 +0000 (16 13:58 +0200)
tree5064537b6d88e735edae1b28efa65d1ddc5bb1a0
parent65ebc83f884cb85b0578b0712b06ad65c40ba67c
extfs: rpm: make it testable.

The way we make this helper testable is a bit different than with other
helpers:

While in other helpers we make it possible to override just one or two
variables, here we make it possible to inject a code snippet into it. This is a
more powerful approach which lets us override even functions, as will be shown
in a following patch.

(As for relocating the "AllTAGS=..." line: all non-declarative code needs to be
moved past our new injection point, or else this code won't be affected by the
injection. BTW, the "$1" on that line isn't used; a vestige from old days.)

Signed-off-by: Mooffie <mooffie@gmail.com>
src/vfs/extfs/helpers/rpm