Skip to content

Commit

Permalink
Fix the htscodecs path
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-puligundla committed Sep 13, 2022
1 parent e0c831b commit c63a253
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions scripts/install-samtools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ set -ex
wget https://github.com/samtools/samtools/releases/download/1.14/samtools-1.14.tar.bz2
# CRAM Interop Tests are dependent on the test files in samtools-1.14/htslib-1.14/htscodes/tests/dat
tar -xjvf samtools-1.14.tar.bz2
echo "print current dir"
pwd
cd samtools-1.14 && ./configure --prefix=/usr && make && sudo make install
2 changes: 1 addition & 1 deletion src/test/java/htsjdk/utils/SamtoolsTestUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static String getSamtoolsBin() {

public static String getCRAMInteropData() {
final String samtoolsPath = System.getenv(SAMTOOLS_BINARY_ENV_VARIABLE);
return samtoolsPath == null ? "../htscodecs/tests" : "/samtools-"+expectedHtslibVersion+ "/htslib-"+expectedHtslibVersion+"/htscodecs/tests";
return samtoolsPath == null ? "../htscodecs/tests" : "./samtools-"+expectedHtslibVersion+ "/htslib-"+expectedHtslibVersion+"/htscodecs/tests";
}

/**
Expand Down

0 comments on commit c63a253

Please sign in to comment.