[PATCH kvm-unit-tests 2/2] runtime: Use find_word with groups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux