From 23c8f667a22e0a6a79099765bfdf8256497a5028 Mon Sep 17 00:00:00 2001 From: Pawel Piatek Date: Wed, 10 Feb 2021 05:47:39 +0100 Subject: [PATCH] autorun: allow pass configuration file path Allow to pass configuration file as first parameter with fallback to previous behaviour where config file is read from home directory. Signed-off-by: Pawel Piatek Change-Id: I45972b04fe5fc978bf3b2bede45aae363be3069c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6361 Tested-by: SPDK CI Jenkins Reviewed-by: Maciej Wawryk Reviewed-by: Karol Latecki Reviewed-by: Michal Berger Reviewed-by: Tomasz Zawadzki Reviewed-by: Jim Harris Community-CI: Mellanox Build Bot --- autorun.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autorun.sh b/autorun.sh index cdc27a3d50..c85fdb2179 100755 --- a/autorun.sh +++ b/autorun.sh @@ -4,7 +4,8 @@ set -e rootdir=$(readlink -f $(dirname $0)) -conf=~/autorun-spdk.conf +default_conf=~/autorun-spdk.conf +conf=${1:-${default_conf}} # If the configuration of tests is not provided, no tests will be carried out. if [[ ! -f $conf ]]; then