Skip to content

Commit

Permalink
Fix output from run_mapper_tests.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
apontzen committed Sep 28, 2024
1 parent 1bb23df commit 4d701be
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions genetIC/tests/run_mapper_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
function runtest {
rm $i/map_out.txt 2>/dev/null
echo "Running test on $i"
head -1 $i/paramfile.txt

cd $i
IC_mapper=${IC_mapper:-../../genetIC_mapper}
# if paramfile_a.txt exists, use it, otherwise use paramfile.txt
PARAM_A=paramfile_a.txt
if [ ! -f $PARAM_A ]; then
PARAM_A=paramfile.txt
fi

head -1 $PARAM_A

# if paramfile_b.txt exists, use it, otherwise use paramfile.txt
PARAM_B=paramfile_b.txt
if [ ! -f $PARAM_B ]; then
Expand All @@ -19,10 +22,8 @@ function runtest {
#if ID_a.txt exists, use it; otherwise, assume we just want to output flags at end of processing paramfile_a
ID_A=ID_a.txt
if [ ! -f $ID_A ]; then
echo $IC_mapper $PARAM_A output.txt
$IC_mapper $PARAM_A output.txt > IC_output.txt 2>&1
else
echo $IC_mapper $PARAM_A $PARAM_B $ID_A output.txt
$IC_mapper $PARAM_A $PARAM_B $ID_A output.txt > IC_output.txt 2>&1
fi
if [ $? -ne 0 ]
Expand Down

0 comments on commit 4d701be

Please sign in to comment.