mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6782: Egress FW rules test cases - Format unicode to string before string matching
(cherry picked from commit 323de6823d)
This commit is contained in:
parent
c6a6b5b698
commit
ae837e34c6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue