On Fri, 07 Feb 2014 14:11:37 +0900 "watanabe.fumitaka" <[email protected]> wrote:
> 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 <[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 8556b52..4b2b42a 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.') I got the following: ryu/tests/switch/tester.py:599:22: E127 continuation line over-indented for visual indent ' it is malformed.') I fixed and merged but please run run_tests.sh script before submitting a patch. ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
