Skip Menu |

This queue is for tickets about the Test-Smoke CPAN distribution.

Report information
The Basics
Id: 126045
Status: resolved
Priority: 0/
Queue: Test-Smoke

People
Owner: Nobody in particular
Requestors: jkeenan [...] pobox.com
Cc:
AdminCc:

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



Subject: lib/Test/Smoke/Archiver.pm: typo in 4 log messages
Date: Sun, 12 Aug 2018 14:09:29 -0400
To: bug-Test-Smoke [...] rt.cpan.org
From: James E Keenan <jkeenan [...] pobox.com>
In lib/Test/Smoke/Archiver.pm there are four methods pertaining to archiving of individual generated files which have similar code: ##### $ grep -n '^sub archive_' lib/Test/Smoke/Archiver.pm | grep -v archive_files 119:sub archive_rpt { 144:sub archive_out { 169:sub archive_jsn { 194:sub archive_log { ##### ##### $ ack -A1 -B2 exits lib lib/Test/Smoke/Archiver.pm 125- my $dst = catfile($self->adir, sprintf("rpt%s.rpt", $self->patchlevel)); 126- if (-f $dst) { 127: return $self->log_info("%s exits, skip archive rpt", $dst); 128- } -- 150- my $dst = catfile($self->adir, sprintf("out%s.out", $self->patchlevel)); 151- if (-f $dst) { 152: return $self->log_info("%s exits, skip archive out", $dst); 153- } -- 175- my $dst = catfile($self->adir, sprintf("jsn%s.jsn", $self->patchlevel)); 176- if (-f $dst) { 177: return $self->log_info("%s exits, skip archive jsn", $dst); 178- } -- 200- my $dst = catfile($self->adir, sprintf("log%s.log", $self->patchlevel)); 201- if (-f $dst) { 202: return $self->log_info("%s exits, skip archive log", $dst); 203- } ##### In each case, if the log file whose name is stored in $dst already exists, we compose a log message indicating we are skipping over the archiving of that file and returning from the caller to Test::Smoke::Archiver::archive_files(). In each case, the log message is incorrect. It ought to be: ##### %s exists, skip archive ... ##### I will provide a patch to correct the problem. Thank you very much. Jim Keenan
On Sun Aug 12 14:09:47 2018, jkeenan@pobox.com wrote: Show quoted text
> In lib/Test/Smoke/Archiver.pm there are four methods pertaining to > archiving of individual generated files which have similar code: > > ##### > $ grep -n '^sub archive_' lib/Test/Smoke/Archiver.pm | grep -v archive_files > 119:sub archive_rpt { > 144:sub archive_out { > 169:sub archive_jsn { > 194:sub archive_log { > ##### > > ##### > $ ack -A1 -B2 exits lib > lib/Test/Smoke/Archiver.pm > 125- my $dst = catfile($self->adir, sprintf("rpt%s.rpt", > $self->patchlevel)); > 126- if (-f $dst) { > 127: return $self->log_info("%s exits, skip archive rpt", $dst); > 128- } > -- > 150- my $dst = catfile($self->adir, sprintf("out%s.out", > $self->patchlevel)); > 151- if (-f $dst) { > 152: return $self->log_info("%s exits, skip archive out", $dst); > 153- } > -- > 175- my $dst = catfile($self->adir, sprintf("jsn%s.jsn", > $self->patchlevel)); > 176- if (-f $dst) { > 177: return $self->log_info("%s exits, skip archive jsn", $dst); > 178- } > -- > 200- my $dst = catfile($self->adir, sprintf("log%s.log", > $self->patchlevel)); > 201- if (-f $dst) { > 202: return $self->log_info("%s exits, skip archive log", $dst); > 203- } > ##### > > In each case, if the log file whose name is stored in $dst already > exists, we compose a log message indicating we are skipping over the > archiving of that file and returning from the caller to > Test::Smoke::Archiver::archive_files(). > > In each case, the log message is incorrect. It ought to be: > > ##### > %s exists, skip archive ... > ##### > > I will provide a patch to correct the problem. >
Please see this pull request: https://github.com/abeltje/Test-Smoke/pull/39 Thank you very much. Jim Keenan
On Sun Aug 12 14:16:00 2018, JKEENAN wrote: Show quoted text
> On Sun Aug 12 14:09:47 2018, jkeenan@pobox.com wrote:
> > In lib/Test/Smoke/Archiver.pm there are four methods pertaining to > > archiving of individual generated files which have similar code: > > > > ##### > > $ grep -n '^sub archive_' lib/Test/Smoke/Archiver.pm | grep -v > > archive_files > > 119:sub archive_rpt { > > 144:sub archive_out { > > 169:sub archive_jsn { > > 194:sub archive_log { > > ##### > > > > ##### > > $ ack -A1 -B2 exits lib > > lib/Test/Smoke/Archiver.pm > > 125- my $dst = catfile($self->adir, sprintf("rpt%s.rpt", > > $self->patchlevel)); > > 126- if (-f $dst) { > > 127: return $self->log_info("%s exits, skip archive rpt", > > $dst); > > 128- } > > -- > > 150- my $dst = catfile($self->adir, sprintf("out%s.out", > > $self->patchlevel)); > > 151- if (-f $dst) { > > 152: return $self->log_info("%s exits, skip archive out", > > $dst); > > 153- } > > -- > > 175- my $dst = catfile($self->adir, sprintf("jsn%s.jsn", > > $self->patchlevel)); > > 176- if (-f $dst) { > > 177: return $self->log_info("%s exits, skip archive jsn", > > $dst); > > 178- } > > -- > > 200- my $dst = catfile($self->adir, sprintf("log%s.log", > > $self->patchlevel)); > > 201- if (-f $dst) { > > 202: return $self->log_info("%s exits, skip archive log", > > $dst); > > 203- } > > ##### > > > > In each case, if the log file whose name is stored in $dst already > > exists, we compose a log message indicating we are skipping over the > > archiving of that file and returning from the caller to > > Test::Smoke::Archiver::archive_files(). > > > > In each case, the log message is incorrect. It ought to be: > > > > ##### > > %s exists, skip archive ... > > ##### > > > > I will provide a patch to correct the problem. > >
> > Please see this pull request: > > https://github.com/abeltje/Test-Smoke/pull/39 > > Thank you very much. > Jim Keenan
Today I am reviewing Test-Smoke-1.72_06. It appears that the spelling errors have been corrected. This ticket will be closable once a new production release has been made to CPAN. Thank you very much. Jim Keenan
On Wed Nov 14 12:32:47 2018, JKEENAN wrote: Show quoted text
> On Sun Aug 12 14:16:00 2018, JKEENAN wrote:
> > On Sun Aug 12 14:09:47 2018, jkeenan@pobox.com wrote:
> > > In lib/Test/Smoke/Archiver.pm there are four methods pertaining to > > > archiving of individual generated files which have similar code: > > > > > > ##### > > > $ grep -n '^sub archive_' lib/Test/Smoke/Archiver.pm | grep -v > > > archive_files > > > 119:sub archive_rpt { > > > 144:sub archive_out { > > > 169:sub archive_jsn { > > > 194:sub archive_log { > > > ##### > > > > > > ##### > > > $ ack -A1 -B2 exits lib > > > lib/Test/Smoke/Archiver.pm > > > 125- my $dst = catfile($self->adir, sprintf("rpt%s.rpt", > > > $self->patchlevel)); > > > 126- if (-f $dst) { > > > 127: return $self->log_info("%s exits, skip archive rpt", > > > $dst); > > > 128- } > > > -- > > > 150- my $dst = catfile($self->adir, sprintf("out%s.out", > > > $self->patchlevel)); > > > 151- if (-f $dst) { > > > 152: return $self->log_info("%s exits, skip archive out", > > > $dst); > > > 153- } > > > -- > > > 175- my $dst = catfile($self->adir, sprintf("jsn%s.jsn", > > > $self->patchlevel)); > > > 176- if (-f $dst) { > > > 177: return $self->log_info("%s exits, skip archive jsn", > > > $dst); > > > 178- } > > > -- > > > 200- my $dst = catfile($self->adir, sprintf("log%s.log", > > > $self->patchlevel)); > > > 201- if (-f $dst) { > > > 202: return $self->log_info("%s exits, skip archive log", > > > $dst); > > > 203- } > > > ##### > > > > > > In each case, if the log file whose name is stored in $dst already > > > exists, we compose a log message indicating we are skipping over > > > the > > > archiving of that file and returning from the caller to > > > Test::Smoke::Archiver::archive_files(). > > > > > > In each case, the log message is incorrect. It ought to be: > > > > > > ##### > > > %s exists, skip archive ... > > > ##### > > > > > > I will provide a patch to correct the problem. > > >
> > > > Please see this pull request: > > > > https://github.com/abeltje/Test-Smoke/pull/39 > > > > Thank you very much. > > Jim Keenan
> > Today I am reviewing Test-Smoke-1.72_06. It appears that the spelling > errors have been corrected. > > This ticket will be closable once a new production release has been > made to CPAN. > > Thank you very much. > Jim Keenan
This is corrected in Test-Smoke-1.76 (probably by https://github.com/abeltje/Test-Smoke/commit/1756bbf5d7d62943f50bc0a3385ea9a270db0079). Ticket is now closable. Thank you very much. Jim Keenan
I guess it was this one: commit 0d90b3a0a3a1f33b311218087673cf1d003495b9 Merge: 18a785f 76f3708 Author: Abe Timmerman <abeltje@cpan.org> Date: Fri Aug 17 19:15:03 2018 +0100 Merge branch 'jkeenan-rtc-126045-exits-test-smoke-archiver-20180812' which was released as part of 1.73