Commit 492e77e0 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

[test-suite] don't change the current working-directory

parent c8555886
......@@ -29,7 +29,7 @@ BEGIN {
#########################
my $dir = tempdir CLEANUP => 1;
chdir $dir;
my $original = chdir $dir;
my $rs_stdout = Bio::EnsEMBL::Hive::Utils::RedirectStack->new(\*STDOUT);
my $stdout = capture_stdout {
......@@ -59,3 +59,6 @@ ok(-e 'baz', '"bar" exists');
is(`cat baz`, qq{Message 5\n}, 'baz output');
done_testing();
chdir $original;
......@@ -31,7 +31,7 @@ use Bio::EnsEMBL::Hive::Utils::Test qw(init_pipeline runWorker);
$ENV{'EHIVE_ROOT_DIR'} = File::Basename::dirname( File::Basename::dirname( File::Basename::dirname( Cwd::realpath($0) ) ) );
my $dir = tempdir CLEANUP => 1;
chdir $dir;
my $original = chdir $dir;
my $ehive_test_pipeline_urls = $ENV{'EHIVE_TEST_PIPELINE_URLS'} || 'sqlite:///ehive_test_pipeline_db';
# LongMultWf_conf has to be excluded because runWorker is not able to resync the pipeline in can_respecialize mode, leading to the first worker not completing the pipeline
......@@ -82,3 +82,6 @@ warn "\nInitializing the $long_mult_version pipeline ...\n\n";
}
done_testing();
chdir $original;
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