From b105a33e0c1d2cfe21442c3a3c2af762d9105574 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 --- 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 a42caa9bb86..4b4b6eee66e 100644 --- a/test/integration/component/test_egress_fw_rules.py +++ b/test/integration/component/test_egress_fw_rules.py @@ -275,7 +275,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