]> git.koha-community.org Git - koha.git/commit
Bug 19169: Add a test to detect unneeded 'atomicupdate' files
authorMason James <mtj@kohaaloha.com>
Sat, 5 Mar 2022 02:30:21 +0000 (15:30 +1300)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Mon, 25 Apr 2022 20:52:25 +0000 (22:52 +0200)
commit476b64fd2dd7772f3c8fa7c6007e2962259d2b63
treeb5708bb9dea86395b415479527507c8b7f62af7b
parent061b8d88ec9696b9627018e4c4bca1c8a27f79e4
Bug 19169: Add a test to detect unneeded 'atomicupdate' files

to test...

1/ set git repo
    $ git reset --hard v21.11.03

2/ run test
    $ prove ./t
    OK

3/ apply patch

4/ run test again, observe FAIL

    $ prove ./t/00-check-atomic-updates.pl
    ./t/00-check-atomic-updates.pl .. 1/?
    #   Failed test 'check for unhandled atomic updates: bug_29596.pl'
    #   at ./t/00-check-atomic-updates.pl line 34.
    #                   'bug_29596.pl'
    #           matches '(?^u:.*pl$)'
    # Looks like you failed 1 test of 3.
    ./t/00-check-atomic-updates.pl .. Dubious, test returned 1 (wstat 256, 0x100)
    Failed 1/3 subtests

JD Amended patch: fix copyright year
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 1d24015e46c3127497aac31b2baddad547e4e8b3)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit bc831c17ad45819ab01dd97685cecc862c427643)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
t/00-check-atomic-updates.pl [new file with mode: 0755]