skip if cvsps is not available

master
Joey Hess 2009-09-10 16:49:54 -04:00
parent 3b8673dbb2
commit e22af796e5
1 changed files with 4 additions and 2 deletions

View File

@ -6,9 +6,11 @@ BEGIN {
$dir="/tmp/ikiwiki-test-cvs.$$";
my $cvs=`which cvs`;
chomp $cvs;
if (! -x $cvs || ! mkdir($dir)) {
my $cvsps=`which cvsps`;
chomp $cvsps;
if (! -x $cvs || ! -x $cvsps || ! mkdir($dir)) {
eval q{
use Test::More skip_all => "cvs not available or could not make test dir"
use Test::More skip_all => "cvs or cvsps not available or could not make test dir"
}
}
}