You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by gi...@apache.org on 2014/05/29 07:39:32 UTC

git commit: updated refs/heads/4.4-forward to 323de68

Repository: cloudstack
Updated Branches:
  refs/heads/4.4-forward 80b984998 -> 323de6823


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


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/323de682
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/323de682
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/323de682

Branch: refs/heads/4.4-forward
Commit: 323de6823deda16ddafab5d79f18996c70130e2b
Parents: 80b9849
Author: Gaurav Aradhye <ga...@clogeny.com>
Authored: Tue May 27 05:51:01 2014 -0700
Committer: Girish Shilamkar <gi...@clogeny.com>
Committed: Thu May 29 11:08:38 2014 +0530

----------------------------------------------------------------------
 test/integration/component/test_egress_fw_rules.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/323de682/test/integration/component/test_egress_fw_rules.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_egress_fw_rules.py b/test/integration/component/test_egress_fw_rules.py
index a42caa9..4b4b6ee 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