Commit 3c9db527 authored by Matthieu Muffato's avatar Matthieu Muffato Committed by ens-bwalts
Browse files

bugfix: keep the modified $PATH local to the test, otherwise it will bleed into the other tests

parent f1c17c2d
...@@ -35,9 +35,12 @@ $ENV{'EHIVE_ROOT_DIR'} ||= File::Basename::dirname( File::Basename::dirname( Fil ...@@ -35,9 +35,12 @@ $ENV{'EHIVE_ROOT_DIR'} ||= File::Basename::dirname( File::Basename::dirname( Fil
my @config_files = Bio::EnsEMBL::Hive::Utils::Config->default_config_files(); my @config_files = Bio::EnsEMBL::Hive::Utils::Config->default_config_files();
my $config = Bio::EnsEMBL::Hive::Utils::Config->new(@config_files); my $config = Bio::EnsEMBL::Hive::Utils::Config->new(@config_files);
my $ini_path = $ENV{'PATH'};
# WARNING: the data in this script must be in sync with what the fake # WARNING: the data in this script must be in sync with what the fake
# binaries output # binaries output
$ENV{'PATH'} = $ENV{'EHIVE_ROOT_DIR'}.'/t/04.meadow/fake_bin:'.$ENV{'PATH'}; { # begin local $ENV{'PATH'}
$ENV{'PATH'} = $ENV{'EHIVE_ROOT_DIR'}.'/t/04.meadow/fake_bin:'.$ini_path;
my $test_pipeline_name = 'tracking_homo_sapiens_funcgen_81_38_hive'; my $test_pipeline_name = 'tracking_homo_sapiens_funcgen_81_38_hive';
my $test_meadow_name = 'test_clUster'; my $test_meadow_name = 'test_clUster';
...@@ -218,5 +221,7 @@ lives_and( sub { ...@@ -218,5 +221,7 @@ lives_and( sub {
is_deeply($h, {}, 'No bacct output when accounting disabled'); is_deeply($h, {}, 'No bacct output when accounting disabled');
}, 'Suppressed bacct when AccountingDisabled when checking a date range'); }, 'Suppressed bacct when AccountingDisabled when checking a date range');
} # end local $ENV{'PATH'}
done_testing(); done_testing();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment