diff options
author | WATANABE Fumitaka <watanabe.fumitaka1@gmail.com> | 2014-02-07 19:52:35 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-02-07 19:52:35 +0900 |
commit | 0a2a4b400800173e2cf6aa1c2a4d5a5b1773b649 (patch) | |
tree | 1970f2061bce2308793e37b6daa9f43e2c15130e | |
parent | 66f825ac47671ac095c046149f0b8c73c0de7a8c (diff) |
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 <watanabe.fumitaka1@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/tests/switch/tester.py | 4 |
1 files 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 |