Skip to content

Commit 98c99a0

Browse files
jkbonfieldpd3
authored andcommitted
Fix Windows trio-dnm3 tests.
These fail because the test script has a cd within it, but for the plugins to work on Windows we need PATH to include the plugin directory, which gets copied from $HTSDIR. Unfortunately if our htslib directory is specified as a relative path then the cd breaks this.
1 parent ac0825e commit 98c99a0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/test.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,9 @@ sub parse_params
11731173
if ( $$opts{htsdir} ) {
11741174
if ($^O eq 'cygwin' || $^O =~ /^msys/) {
11751175
# Set PATH so against-htslib-source builds can find the htslib dll
1176-
$ENV{PATH} = "$$opts{htsdir}:"."$$opts{htsdir}/bin:"."$$opts{htsdir}/lib:".$ENV{PATH};
1176+
my $abs_htsdir = abs_path($$opts{htsdir});
1177+
$ENV{PATH} = "$abs_htsdir:"."$abs_htsdir/bin:"."$abs_htsdir/lib:".$ENV{PATH};
1178+
print "Setting Windows PATH to $ENV{PATH}\n";
11771179
}
11781180
}
11791181
$$opts{tmp} = $$opts{keep_files} ? $$opts{keep_files} : safe_tempdir;

0 commit comments

Comments
 (0)