Improve level parsing (Maniack)

This commit is contained in:
Alexandre Aubin 2017-09-01 20:21:05 +02:00
parent 20c9486014
commit fc133404a2

View file

@ -23,12 +23,19 @@ do
fi
done < list_tests
# Get the level of this application and the value of each level
LEVELS=$(grep -A10 'Level of this application' data/$APPNAME \
| tail -n 11 \
| sed -e 's@N/A@X@g' -e 's/ Level //g' -e 's/Level of this application//g' \
| awk '{print $2}' \
| tail -n11 \
| sed 's/.*: \| (.*//g' \
| sed 's@N/A@X@g' \
| tr -d '\n')
# LEVELS=$(grep -A10 'Level of this application' data/$APPNAME \
# | tail -n 11 \
# | sed -e 's@N/A@X@g' -e 's/ Level //g' -e 's/Level of this application//g' \
# | awk '{print $2}' \
# | tr -d '\n')
echo $TESTS_RESULTS > data/$APPNAME
echo $LEVELS >> data/$APPNAME