CLOUDSTACK-6782: Egress FW rules test cases - Format unicode to string before string matching

(cherry picked from commit 323de6823d)
This commit is contained in:
Gaurav Aradhye 2014-05-27 05:51:01 -07:00 committed by Daan Hoogland
parent c6a6b5b698
commit ae837e34c6
1 changed files with 4 additions and 1 deletions

View File

@ -274,7 +274,10 @@ class TestEgressFWRules(cloudstackTestCase):
self.debug("script: %s" % script+exec_cmd_params)
self.debug("result: %s" % result)
str_result = str(str(result).strip())
if isinstance(result, list):
str_result = str([str(x) for x in result])
else:
str_result = str(result)
str_expected_result = str(expected_result).strip()
if str_result == str_expected_result:
exec_success = True