[RPC tool] Sync go/nest-cl/297213 Change-Id: I791da91a11d8650deaed00427e073eece00af9aa
diff --git a/rpc_tool/README.md b/rpc_tool/README.md index fe7629c..afa9258 100644 --- a/rpc_tool/README.md +++ b/rpc_tool/README.md
@@ -45,6 +45,10 @@ $ sh verify_rpc.sh build ``` + Or use the below command if you're running on Ubuntu: + ``` + $ ./verify_rpc.sh build + ``` ## Usage @@ -59,6 +63,11 @@ $ sh verify_rpc.sh run ``` + Or use the below command if you're running on Ubuntu: + ``` + $ ./verify_rpc.sh run + ``` + 3. The tool will ask you to select the device to test, use arrow keys on the keyboard to select. (The tool only supports running 1 device at a time). 4. The tool will start testing the RPC functionality of the device, a successful test result looks like: @@ -151,6 +160,11 @@ $ sh verify_rpc.sh stress ``` + Or use the below command if you're running on Ubuntu: + ``` + $ ./verify_rpc.sh stress + ``` + 3. Select the device you want to test, then the tool will start stress testing. A successful test result looks like: ```
diff --git a/rpc_tool/verify_rpc.sh b/rpc_tool/verify_rpc.sh index 29bb5f9..e6a9013 100644 --- a/rpc_tool/verify_rpc.sh +++ b/rpc_tool/verify_rpc.sh
@@ -23,7 +23,9 @@ { python3 -m venv $HOME/$RPC_VENV source $HOME/$RPC_VENV/bin/activate + python -m pip install --upgrade pip pip install -r $BASEDIR/verify_rpc/requirements.txt + export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python }