Commits

Toby Inkster committed 809f8c5

allow myself to build the dist on Linux

Comments (0)

Files changed (2)

-BEGIN { die "Windows only!\n" unless $^O =~ /win/i };
+BEGIN { die "Windows only!\n" unless $^O =~ /win/i || -d '.hg' };
 
 use inc::Module::Package 'RDF:tobyink 0.009';
 install_share;
 use Alien::Wenity;
 use IO::Prompt::Tiny qw(prompt);
 
+if ($^O !~ /win/i)
+{
+	plan skip_all => 'no testing on non-Windows systems';
+	exit;
+}
+
 {
 	my $cmd = sprintf(
 		'"%s" --test-command',
 my $interactive = prompt("Interactive tests? (y/n)", "n");
 if ($interactive !~ /y/i)
 {
-	pass;
 	done_testing;
 	exit;
 }