Skip Menu |

This queue is for tickets about the Module-FromPerlVer CPAN distribution.

Report information
The Basics
Id: 124719
Status: resolved
Priority: 0/
Queue: Module-FromPerlVer

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.003000
Fixed in: (no value)



Subject: Different git wording
Older git versions seem to use a different wording, causing the t/??-git-defaults-*.t test to fail. For example on a debian/jessie system (git 2.1.4): ... Previous HEAD position was f602a53... perl 5.888_888 release HEAD is now at 783a036... 5.005003 release # Failed test 'Branch: '* (detached from perl/v5.5.3)' (perl/v5.5.3)' # at t/20-git-defaults-5.5.3.t line 55. # got: '* (detached from perl/v5.5.3)' # expected: '* (HEAD detached at perl/v5.5.3)' # Looks like you failed 1 test of 3. t/20-git-defaults-5.5.3.t ...... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/3 subtests Previous HEAD position was 783a036... 5.005003 release HEAD is now at f602a53... perl 5.888_888 release # Failed test 'Branch: '* (detached from perl/v5.888.888)' (perl/v5.888.888)' # at t/21-git-defaults-5.888.888.t line 55. # got: '* (detached from perl/v5.888.888)' # expected: '* (HEAD detached at perl/v5.888.888)' # Looks like you failed 1 test of 3. t/21-git-defaults-5.888.888.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/3 subtests Previous HEAD position was f602a53... perl 5.888_888 release HEAD is now at bbb0996... fix version # Failed test 'Branch: '* (detached from perl/v5.999.999)' (perl/v5.999.999)' # at t/22-git-defaults-5.999.999.t line 55. # got: '* (detached from perl/v5.999.999)' # expected: '* (HEAD detached at perl/v5.999.999)' # Looks like you failed 1 test of 3. t/22-git-defaults-5.999.999.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/3 subtests Previous HEAD position was bbb0996... fix version HEAD is now at f602a53... perl 5.888_888 release # Failed test 'Branch: '* (detached from perl/v5.888.888)' (* (HEAD detached at perl/v5.888.888))' # at t/23-git-defaults-5.888.999.t line 55. # got: '* (detached from perl/v5.888.888)' # expected: '* (HEAD detached at perl/v5.888.888)' # Looks like you failed 1 test of 3. t/23-git-defaults-5.888.999.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/3 subtests ...
On 2018-03-08 02:21:12, SREZIC wrote: Show quoted text
> Older git versions seem to use a different wording, causing the t/??- > git-defaults-*.t test to fail. For example on a debian/jessie system > (git 2.1.4): > > ... > Previous HEAD position was f602a53... perl 5.888_888 release > HEAD is now at 783a036... 5.005003 release > > # Failed test 'Branch: '* (detached from perl/v5.5.3)' > (perl/v5.5.3)' > # at t/20-git-defaults-5.5.3.t line 55. > # got: '* (detached from perl/v5.5.3)' > # expected: '* (HEAD detached at perl/v5.5.3)' > # Looks like you failed 1 test of 3. > t/20-git-defaults-5.5.3.t ...... > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/3 subtests > Previous HEAD position was 783a036... 5.005003 release > HEAD is now at f602a53... perl 5.888_888 release > > # Failed test 'Branch: '* (detached from perl/v5.888.888)' > (perl/v5.888.888)' > # at t/21-git-defaults-5.888.888.t line 55. > # got: '* (detached from perl/v5.888.888)' > # expected: '* (HEAD detached at perl/v5.888.888)' > # Looks like you failed 1 test of 3. > t/21-git-defaults-5.888.888.t .. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/3 subtests > Previous HEAD position was f602a53... perl 5.888_888 release > HEAD is now at bbb0996... fix version > > # Failed test 'Branch: '* (detached from perl/v5.999.999)' > (perl/v5.999.999)' > # at t/22-git-defaults-5.999.999.t line 55. > # got: '* (detached from perl/v5.999.999)' > # expected: '* (HEAD detached at perl/v5.999.999)' > # Looks like you failed 1 test of 3. > t/22-git-defaults-5.999.999.t .. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/3 subtests > Previous HEAD position was bbb0996... fix version > HEAD is now at f602a53... perl 5.888_888 release > > # Failed test 'Branch: '* (detached from perl/v5.888.888)' (* (HEAD > detached at perl/v5.888.888))' > # at t/23-git-defaults-5.888.999.t line 55. > # got: '* (detached from perl/v5.888.888)' > # expected: '* (HEAD detached at perl/v5.888.888)' > # Looks like you failed 1 test of 3. > t/23-git-defaults-5.888.999.t .. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/3 subtests > ...
It's also possible that the wording is localized --- so probably something like LC_ALL=C should be used here. Test log with LC_ALL=de_DE.*: Vorherige Position von HEAD war f602a53... perl 5.888_888 release HEAD ist jetzt bei 783a036... 5.005003 release # Failed test 'Branch: '* (HEAD losgelöst bei perl/v5.5.3)' (perl/v5.5.3)' # at t/20-git-defaults-5.5.3.t line 55. # got: '* (HEAD losgelöst bei perl/v5.5.3)' # expected: '* (HEAD detached at perl/v5.5.3)' # Looks like you failed 1 test of 3. t/20-git-defaults-5.5.3.t ...... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/3 subtests Vorherige Position von HEAD war 783a036... 5.005003 release HEAD ist jetzt bei f602a53... perl 5.888_888 release # Failed test 'Branch: '* (HEAD losgelöst bei perl/v5.888.888)' (perl/v5.888.888)' # at t/21-git-defaults-5.888.888.t line 55. # got: '* (HEAD losgelöst bei perl/v5.888.888)' # expected: '* (HEAD detached at perl/v5.888.888)' # Looks like you failed 1 test of 3. t/21-git-defaults-5.888.888.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/3 subtests Vorherige Position von HEAD war f602a53... perl 5.888_888 release HEAD ist jetzt bei bbb0996... fix version # Failed test 'Branch: '* (HEAD losgelöst bei perl/v5.999.999)' (perl/v5.999.999)' # at t/22-git-defaults-5.999.999.t line 55. # got: '* (HEAD losgelöst bei perl/v5.999.999)' # expected: '* (HEAD detached at perl/v5.999.999)' # Looks like you failed 1 test of 3. t/22-git-defaults-5.999.999.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/3 subtests Vorherige Position von HEAD war bbb0996... fix version HEAD ist jetzt bei f602a53... perl 5.888_888 release # Failed test 'Branch: '* (HEAD losgelöst bei perl/v5.888.888)' (* (HEAD detached at perl/v5.888.888))' # at t/23-git-defaults-5.888.999.t line 55. # got: '* (HEAD losgelöst bei perl/v5.888.888)' # expected: '* (HEAD detached at perl/v5.888.888)' # Looks like you failed 1 test of 3. t/23-git-defaults-5.888.999.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/3 subtests
Revised rx to use /* .+ $prefix/x to avoid language issues.