Groups are space separated, so we can remove the 'grep -w', which has caused problems in the past with testnames, see b373304853a0 ("scripts: Fix the check whether testname is in the only_tests list") and use find_word. Signed-off-by: Andrew Jones <drjones@xxxxxxxxxx> --- scripts/runtime.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/runtime.bash b/scripts/runtime.bash index 132389c7dd59..4deb41ca251c 100644 --- a/scripts/runtime.bash +++ b/scripts/runtime.bash @@ -132,7 +132,7 @@ function run() } cmdline=$(get_cmdline $kernel) - if grep -qw "migration" <<<$groups ; then + if find_word "migration" "$groups"; then cmdline="MIGRATION=yes $cmdline" fi if [ "$verbose" = "yes" ]; then -- 2.31.1