mirror of
https://github.com/YunoHost/tartiflette.git
synced 2024-09-03 20:06:08 +02:00
Improve level parsing (Maniack)
This commit is contained in:
parent
20c9486014
commit
fc133404a2
1 changed files with 10 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue