[kvm-unit-tests PATCH 1/2] runtime: Convert "check" from string to array so that iterating works

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

 



Convert "check" from a string to an array so that splitting on whitespace
for iteration works as expected, i.e. so that testcases can have multiple
requirements.

Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
---
 scripts/runtime.bash | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/runtime.bash b/scripts/runtime.bash
index 07b62b0e..1cfc5bfd 100644
--- a/scripts/runtime.bash
+++ b/scripts/runtime.bash
@@ -120,6 +120,7 @@ function run()
     # the check line can contain multiple files to check separated by a space
     # but each check parameter needs to be of the form <path>=<value>
     if [ "$check" ]; then
+        check=($check)
         for check_param in "${check[@]}"; do
             path=${check_param%%=*}
             value=${check_param#*=}
-- 
2.41.0.162.gfafddb0af9-goog




[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