[LTP] [PATCH v2 6/8] build.sh: Add support for test-metadata

Andrea Cervesato andrea.cervesato@suse.com
Mon Jul 13 13:11:28 CEST 2026


Hi Petr,

> -if [ -z "$run" -o "$run" = "test" -o "$run" = "test-c" -o "$run" = "test-shell" -o "$run" = "test-shell-loader" ]; then
> +if [ -z "$run" -o "$run" = "test" -o "$run" = "test-c" -o "$run" = "test-metadata" -o "$run" = "test-shell" -o "$run" = "test-shell-loader" ]; then

This is getting uglier. What about this?

if [ -z "$run" ] || [ "${run#test}" != "$run" ]; then

The rest LGTM:

Reviewed-by: Andrea Cervesato <andrea.cervesato@suse.com>

Regards,
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com


More information about the ltp mailing list