Fix Get OMCC Version
Change-Id: Idb67d469acb4311a6e58750b8ede64d044f87ca4
diff --git a/libraries/bbsim.robot b/libraries/bbsim.robot
index 9fed918..7333268 100755
--- a/libraries/bbsim.robot
+++ b/libraries/bbsim.robot
@@ -162,7 +162,9 @@
Should Be Equal as Integers ${rc} 0
Should Not Be Empty ${output} Unable to read OMCC Version
${output}= Remove String ${output} " [ ]
- @{commands}= Split String ${output} ,
+ ${is_comma_separated}= Evaluate "," in """${output}"""
+ @{commands}= Run Keyword If ${is_comma_separated} Split String ${output} ,
+ ... ELSE Split String ${output}
${length}= Get Length ${commands}
${match}= Set Variable False
FOR ${I} IN RANGE 0 ${length}