From: Petru Trimbitas Date: Thu, 14 Apr 2022 10:31:24 +0000 (+0300) Subject: Some test fixing on os x X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=7aa03ec19ba9d88c2c22ab5d678c159bcc18e48f;p=gruntmaster-daemon.git Some test fixing on os x --- diff --git a/t/00-compile.t b/t/00-compile.t index 28dd755..eaa82ca 100644 --- a/t/00-compile.t +++ b/t/00-compile.t @@ -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') +}; diff --git a/t/01-jobs.t b/t/01-jobs.t index 3f00b3d..0bb2350 100644 --- a/t/01-jobs.t +++ b/t/01-jobs.t @@ -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{