Risk: Low
Visibility: Changes the errors throws by a bunch of tests.
Tests shouldn't be throwing UnhandledError directly. Convert them all
into TestError classes.
Signed-off-by: John Admanski <jadmanski@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1708 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/tests/netperf2/netperf2.py b/client/tests/netperf2/netperf2.py
index 727d74b..e10cfa2 100755
--- a/client/tests/netperf2/netperf2.py
+++ b/client/tests/netperf2/netperf2.py
@@ -45,7 +45,7 @@
self.client(script, server_ip, args)
job.barrier(client_tag, 'stop', 30).rendevous(*all)
else:
- raise error.UnhandledError('invalid role specified')
+ raise error.TestError('invalid role specified')
def server_start(self):