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/master to b105a33
Date Thu, 29 May 2014 05:41:00 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 8a6926606 -> b105a33e0


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/b105a33e
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b105a33e
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b105a33e

Branch: refs/heads/master
Commit: b105a33e0c1d2cfe21442c3a3c2af762d9105574
Parents: 8a69266
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:10:20 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/b105a33e/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