From ae837e34c6fb2029b2e3840e912330dcc3ecb4cf Mon Sep 17 00:00:00 2001 From: Gaurav Aradhye Date: Tue, 27 May 2014 05:51:01 -0700 Subject: [PATCH] CLOUDSTACK-6782: Egress FW rules test cases - Format unicode to string before string matching (cherry picked from commit 323de6823deda16ddafab5d79f18996c70130e2b) --- test/integration/component/test_egress_fw_rules.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/integration/component/test_egress_fw_rules.py b/test/integration/component/test_egress_fw_rules.py index 8da37381bb5..6060115e091 100644 --- a/test/integration/component/test_egress_fw_rules.py +++ b/test/integration/component/test_egress_fw_rules.py @@ -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