From 6fd492e3e046a5dc8a1b5dfefecf1083a8f9dc1b Mon Sep 17 00:00:00 2001 From: Darek Stojaczyk Date: Tue, 2 Jun 2020 15:06:50 +0200 Subject: [PATCH] test/rpc: remove $PWD requirement Use context-independent paths instead. This allows running the test from $PWD different than $rootdir. Change-Id: Id3835aab46bcd473d3852e5e1e0d6b2c1d241b37 Signed-off-by: Darek Stojaczyk Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2752 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Shuhei Matsumoto Reviewed-by: Tomasz Zawadzki Reviewed-by: Jim Harris --- test/rpc/rpc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rpc/rpc.sh b/test/rpc/rpc.sh index c2acd3ece..348247a54 100755 --- a/test/rpc/rpc.sh +++ b/test/rpc/rpc.sh @@ -42,13 +42,13 @@ spdk_pid=$! trap 'killprocess $spdk_pid; exit 1' SIGINT SIGTERM EXIT waitforlisten $spdk_pid -export PYTHONPATH=$PWD/test/rpc/ +export PYTHONPATH=$testdir # basic integrity test rpc="$rootdir/scripts/rpc.py" run_test "rpc_integrity" rpc_integrity run_test "rpc_plugins" rpc_plugins -# same test, but with rpc_cmd() instead +# same integrity test, but with rpc_cmd() instead rpc="rpc_cmd" run_test "rpc_daemon_integrity" rpc_integrity