cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gir...@apache.org
Subject git commit: updated refs/heads/4.4-forward to 323de68
Date Thu, 29 May 2014 05:39:32 GMT
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 <gaurav.aradhye@clogeny.com>
Authored: Tue May 27 05:51:01 2014 -0700
Committer: Girish Shilamkar <girish@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


Mime
View raw message