]> iEval git - gruntmaster-daemon.git/commitdiff
Some test fixing on os x
authorPetru Trimbitas <petru.trimbitas@yahoo.com>
Thu, 14 Apr 2022 10:31:24 +0000 (13:31 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 17 Apr 2022 18:38:46 +0000 (21:38 +0300)
t/00-compile.t
t/01-jobs.t

index 28dd755759f69d7a1f82dcaf9a5d656bc8b56ab7..eaa82ca1990d3a73c06d5d4dfc03748103b5433e 100644 (file)
@@ -1,7 +1,11 @@
-#!/usr/bin/perl -w
 use v5.14;
 use strict;
 use warnings;
 
+use FindBin;
+
 use Test::More tests => 1;
-BEGIN { use_ok('Gruntmaster::Daemon') };
+BEGIN {
+  $ENV{PATH} = "$FindBin::Bin/../blib/script:" . $ENV{PATH};
+  use_ok('Gruntmaster::Daemon')
+};
index 3f00b3d0b90f8c81ba6af2b276b9f5cc13f327e9..0bb2350a0c18b29e5f39cfbce3d5d68efa7c831f 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/perl -w
 use v5.14;
 use strict;
 use warnings;
@@ -10,6 +9,7 @@ use File::Basename qw/fileparse/;
 use File::Slurp qw/read_file/;
 use File::Temp qw/tempdir/;
 use File::Which qw/which/;
+use FindBin;
 use Hash::Merge qw/merge/;
 use List::Util qw/sum/;
 use Log::Log4perl;
@@ -53,6 +53,7 @@ CONF
 Log::Log4perl->init(\$log_conf);
 
 $ENV{PATH} = getcwd . ':' . $ENV{PATH};
+$ENV{PATH} = "$FindBin::Bin/../blib/script:" . $ENV{PATH};
 umask 0022;
 
 sub check_job{
This page took 0.0275 seconds and 4 git commands to generate.