From 903862c4514cbd63d56c8565898304e1d3f2c0be Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sat, 21 May 2022 15:39:23 +0200 Subject: [PATCH] Improve flag set generation of RGBGFX tests Less duplication = good --- test/gfx/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/gfx/test.sh b/test/gfx/test.sh index 81534a75..2ae6fcdf 100755 --- a/test/gfx/test.sh +++ b/test/gfx/test.sh @@ -31,7 +31,7 @@ fail() { while [[ "$ofs" -eq 0 ]]; do (( ofs = RANDOM % 256 )); done while [[ "$size" -eq 0 ]]; do (( size = RANDOM % 256 )); done for f in *.bin; do - for flags in "" "-b $ofs" "-N $size,256" "-b $ofs -N $size,256"; do + for flags in ""{," -b $ofs"}{," -N $size,256"}; do new_test ./rgbgfx_test "$f" $flags test || fail $? done