Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id:
113182
Status:
resolved
Priority:
Low/Low

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

BugTracker
Severity:
Normal
Broken in:
4.009
Fixed in:
(no value)



Subject: cannot use some values for environment variables
I want to skip only some tests for module when building Strawberry, so I tried using TAP::Harness::Restricted: { module=>'IO::Stringy', env=>{ 'HARNESS_SUBCLASS'=>'TAP::Harness::Restricted', 'HARNESS_SKIP'=>'t/IO_InnerFile.t' } } But they were not used by TAP::Harness, probably because resolve_name() is applied to values when setting environment variables and if it is not URL, it uses canonpath(). canonpath('t/IO_InnerFile.t') is 't\IO_InnerFile.t', which does not match. -- Alexandr Ciornii, http://chorny.net
On Sat Mar 19 10:31:49 2016, CHORNY wrote:
Show quoted text
> I want to skip only some tests for module when building Strawberry, so > I tried using TAP::Harness::Restricted: > { module=>'IO::Stringy', env=>{ > 'HARNESS_SUBCLASS'=>'TAP::Harness::Restricted', > 'HARNESS_SKIP'=>'t/IO_InnerFile.t' } } > But they were not used by TAP::Harness, probably because > resolve_name() is applied to values when setting environment variables > and if it is not URL, it uses canonpath(). > canonpath('t/IO_InnerFile.t') is 't\IO_InnerFile.t', which does not > match.
Added special case for HARNESS_SKIP in commit 62ce3d1ec05800df6be85501767a5ebc2469ffe9 -- Alexandr Ciornii, http://chorny.net


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.