Add a basic "echo" function to the afe rpc interface, to allow for a
lightweight connection test.
Risk: Low
Visibility: Adds an echo() function to the frontend rpc interface.
Signed-off-by: John Admanski <jadmanski@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1957 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/rpc_interface.py b/frontend/afe/rpc_interface.py
index fa13e50..86292b2 100644
--- a/frontend/afe/rpc_interface.py
+++ b/frontend/afe/rpc_interface.py
@@ -497,6 +497,14 @@
# other
+def echo(data=""):
+ """\
+ Returns a passed in string. For doing a basic test to see if RPC calls
+ can successfully be made.
+ """
+ return data
+
+
def get_static_data():
"""\
Returns a dictionary containing a bunch of data that shouldn't change