A new RPC perform_tests has been added. This request will help us avoid reading hotplug generated logs, and instead we can stop hotplug right before it begins generating IO, and resume it when the test scripts are ready. Additionally a new command line option has been added to the hotplug application "--wait-for-rpc", which indicates that hotplug should wait for perform_tests RPC before starting its IO. Change-Id: I71ca148201854ac155cc2a61171a4fb5fc427a19 Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13962 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
12 lines
335 B
Python
12 lines
335 B
Python
from spdk.rpc.client import print_json
|
|
|
|
|
|
def perform_tests(args):
|
|
print_json(args.client.call('perform_tests'))
|
|
|
|
|
|
def spdk_rpc_plugin_initialize(subparsers):
|
|
p = subparsers.add_parser('perform_tests',
|
|
help='Returns true when hotplug apps starts running IO')
|
|
p.set_defaults(func=perform_tests)
|