mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Avoid creating a file named "0" when calling "make check".
We use "printf" instead of "print" in awk in order to avoid a newline in the value of $xfcount, and use "-gt" instead of ">", which creates the spurious file, in the comparison.
This commit is contained in:
parent
948cd2154a
commit
b831ffe96c
Notes:
Alexandre Julliard
2024-03-12 22:58:51 +01:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/705
@ -183,7 +183,7 @@ EOF
|
||||
details=$(awk "$awk_program" "$log_file")
|
||||
|
||||
# Count number of [XF] tags.
|
||||
xfcount=$(echo "$details" | awk '/\[XF\]/{count++} END{print count}')
|
||||
xfcount=$(echo "$details" | awk '/\[XF\]/{count++} END{printf "%d", count}')
|
||||
|
||||
details=$(echo "$details" |\
|
||||
sed "s/\[F\]/$color_bright_red[F]$color_reset/g" |\
|
||||
@ -197,7 +197,7 @@ details=$(echo "$details" |\
|
||||
awk 'NF != 1' )
|
||||
|
||||
# If the test passes but has [XF], we will omit details but report number of [XF]
|
||||
if [ "$res" = "PASS" ] && [ $xfcount > 0 ]; then
|
||||
if [ "$res" = "PASS" ] && [ "$xfcount" -gt 0 ]; then
|
||||
details="$color_yellow($xfcount XF)$color_reset"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user