From 0a2a4b400800173e2cf6aa1c2a4d5a5b1773b649 Mon Sep 17 00:00:00 2001 From: WATANABE Fumitaka Date: Fri, 7 Feb 2014 19:52:35 +0900 Subject: sw test tool: correct error message When test tool receives a malformed packet(length value is unusual, for example), detecting differences between expected and received is a failure. In this case, 'Internal error.' is not suitable as a log message and should notify tool receives a malformed packet. Signed-off-by: WATANABE Fumitaka Signed-off-by: FUJITA Tomonori --- 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 8556b52f..de39b774 100644 --- a/ryu/tests/switch/tester.py +++ b/ryu/tests/switch/tester.py @@ -592,8 +592,8 @@ class OfTester(app_manager.RyuApp): if msg: return '/'.join(msg) else: - raise RyuException('Internal error.' - ' receive packet is matching.') + return ('Encounter an error during packet comparison.' + ' it is malformed.') def _wait(self): """ Wait until specific OFP message received -- cgit v1.2.3