From 41f7e488e6487d6a33851bc16dd2a91ba39e67b4 Mon Sep 17 00:00:00 2001
From: Maxim Scheremetjew <maxim.scheremetjew@gmail.com>
Date: Tue, 14 May 2024 14:51:22 +0200
Subject: [PATCH] tests,fix: Applied a fix to the dive test bash script.

---
 ci/test_shark_dive_commands.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ci/test_shark_dive_commands.sh b/ci/test_shark_dive_commands.sh
index 17a11a1..ad2487e 100755
--- a/ci/test_shark_dive_commands.sh
+++ b/ci/test_shark_dive_commands.sh
@@ -17,9 +17,9 @@ export DIVE_MODEL_PKL_PATH="$DATA_DIR/dive_pred_model_v2.pkl"
 
 shark-dive ci/IDR_Segments.fasta ci/IDR_Segments.fasta
 
-python_output=$(python -c 'import site; print(site.getsitepackages()[0])' 2>&1)
+python_output="$PWD"
 
-diff ci/expected_output_shark_dive_predict_out__IDR_Segments.fasta_IDR_Segments.fasta.csv $python_output/bio_shark/data/shark_dive_predict_out__IDR_Segments.fasta_IDR_Segments.fasta.csv >>/dev/null
+diff ci/expected_output_shark_dive_predict_out__IDR_Segments.fasta_IDR_Segments.fasta.csv $python_output/shark_dive_predict_out__IDR_Segments.fasta_IDR_Segments.fasta.csv >>/dev/null
 if [ $? -eq 1 ]
 then
     echo >&2 -e "TEST FAILED: Difference detected in the expected output script. Please check your latest code changes!"
-- 
GitLab