Signed-off-by: IWASE Yusuke <[email protected]>
---
 ryu/tests/switch/tester.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ryu/tests/switch/tester.py b/ryu/tests/switch/tester.py
index 3af7f76..5182d45 100644
--- a/ryu/tests/switch/tester.py
+++ b/ryu/tests/switch/tester.py
@@ -912,8 +912,8 @@ class OfTester(app_manager.RyuApp):
             value1 = getattr(stats1, attr)
             value2 = getattr(stats2, attr)
             if attr == 'instructions':
-                value1 = sorted(value1)
-                value2 = sorted(value2)
+                value1 = sorted(value1, key=lambda x: x.type)
+                value2 = sorted(value2, key=lambda x: x.type)
             elif attr == 'match':
                 value1 = sorted(__reasm_match(value1))
                 value2 = sorted(__reasm_match(value2))
-- 
1.9.1


------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to