diff --git a/tests/run-vtu-test.sh b/tests/run-vtu-test.sh index a3faea635..31ae9af52 100755 --- a/tests/run-vtu-test.sh +++ b/tests/run-vtu-test.sh @@ -91,7 +91,7 @@ case "$TEST_TYPE" in echo "RND: '$RND'" SIM_NAME=$(grep "Applying the initial solution of the" "test-$RND.log" | sed "s/.*\"\(.*\)\".*/\1/" | head -n1) - NUM_TIMESTEPS=$(grep "Time step [0-9]* done" "test-$RND.log" | wc -l) + NUM_TIMESTEPS=$(( $(grep "Time step [0-9]* done" "test-$RND.log" | wc -l) + 1)) TEST_RESULT=$(printf "%s-%05i" "$SIM_NAME" "$NUM_TIMESTEPS") TEST_RESULT=$(ls -- "$TEST_RESULT".*) rm "test-$RND.log" @@ -120,7 +120,7 @@ case "$TEST_TYPE" in fi SIM_NAME=$(grep "Applying the initial solution of the" "test-$RND.log" | sed "s/.*\"\(.*\)\".*/\1/" | head -n1) - NUM_TIMESTEPS=$(grep "Time step [0-9]* done" "test-$RND.log" | wc -l) + NUM_TIMESTEPS=$(( $(grep "Time step [0-9]* done" "test-$RND.log" | wc -l) + 1)) rm "test-$RND.log" echo "Simulation name: '$SIM_NAME'"