From d24fd21ccadb8e4c8e8dfe472b9799fbc8e34fc9 Mon Sep 17 00:00:00 2001 From: James Bonfield Date: Mon, 16 Mar 2026 12:37:45 +0000 Subject: [PATCH] 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. --- test/test.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test.pl b/test/test.pl index 97333589..76a592a7 100755 --- a/test/test.pl +++ b/test/test.pl @@ -1173,7 +1173,9 @@ sub parse_params if ( $$opts{htsdir} ) { if ($^O eq 'cygwin' || $^O =~ /^msys/) { # Set PATH so against-htslib-source builds can find the htslib dll - $ENV{PATH} = "$$opts{htsdir}:"."$$opts{htsdir}/bin:"."$$opts{htsdir}/lib:".$ENV{PATH}; + my $abs_htsdir = abs_path($$opts{htsdir}); + $ENV{PATH} = "$abs_htsdir:"."$abs_htsdir/bin:"."$abs_htsdir/lib:".$ENV{PATH}; + print "Setting Windows PATH to $ENV{PATH}\n"; } } $$opts{tmp} = $$opts{keep_files} ? $$opts{keep_files} : safe_tempdir;