Skip to content

Commit b105a33

Browse files
Gaurav AradhyeGirish Shilamkar
authored andcommitted
CLOUDSTACK-6782: Egress FW rules test cases - Format unicode to string before string matching
1 parent 8a69266 commit b105a33

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/integration/component/test_egress_fw_rules.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,10 @@ def exec_script_on_user_vm(self, script, exec_cmd_params, expected_result, negat
275275
self.debug("script: %s" % script+exec_cmd_params)
276276
self.debug("result: %s" % result)
277277

278-
str_result = str(str(result).strip())
278+
if isinstance(result, list):
279+
str_result = str([str(x) for x in result])
280+
else:
281+
str_result = str(result)
279282
str_expected_result = str(expected_result).strip()
280283
if str_result == str_expected_result:
281284
exec_success = True

0 commit comments

Comments
 (0)