]> 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)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 25 Apr 2022 21:55:14 +0000 (09:55 +1200)
commit3ff9ff5311ed7cbeff07b91e534e59af82103579
treea7f37ec1e4c0b26371e017691568fcb82294695a
parent5960f44be17277f682c8cf959a924dab268d6fa2
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: Chris Cormack <chrisc@catalyst.net.nz>
t/00-check-atomic-updates.pl [new file with mode: 0755]