diff mbox series

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

Message ID 20230607215114.1586228-2-seanjc@google.com (mailing list archive)
State New, archived
Headers show
Series runtime: x86: Require vPMU for x86/pmu tests | expand

Commit Message

Sean Christopherson June 7, 2023, 9:51 p.m. UTC
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@google.com>
---
 scripts/runtime.bash | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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#*=}