Skip to content

Commit

Permalink
Added full paths
Browse files Browse the repository at this point in the history
  • Loading branch information
cellgeni committed Jan 20, 2025
1 parent 76357b5 commit fe2a783
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_metadata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fi

SERIES=$1
SAMPLE_LIST=${2:-""}
OUTPUT_DIR="output/$SERIES"
OUTPUT_DIR="${GITHUB_WORKSPACE}/output/$SERIES"

# Create output directory and copy all scripts
mkdir -p $OUTPUT_DIR
Expand All @@ -20,7 +20,7 @@ echo "Loading metadata for $SERIES $SAMPLE_LIST"
./collect_metadata.sh $SERIES $SAMPLE_LIST

# Test output
for file in test_data/$SERIES/*
for file in ${GITHUB_WORKSPACE}/test_data/$SERIES/*
do
filename=$(basename $file)
echo "Testing $file"
Expand All @@ -40,7 +40,7 @@ do
fi

# Compare the actual output with the expected output
if ! diff -q $filename $file
if [[ ! diff -q $filename $file ]]
then
echo "❌ERROR: Output file $filename does not match expected output!"
exit 1
Expand Down

0 comments on commit fe2a783

Please sign in to comment.