From 30e768405c565d6a1b3e2ed07c86d3fad578eb3d Mon Sep 17 00:00:00 2001 From: Razvan Crainea Date: Fri, 24 Nov 2023 11:08:02 +0200 Subject: [PATCH] run-all.sh: fix directory detection (cherry picked from commit 7a8ef438b9cf81d2e0bd81529eae70df971bfe3d) --- run-all.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run-all.sh b/run-all.sh index ac0a926..b64a195 100755 --- a/run-all.sh +++ b/run-all.sh @@ -1,14 +1,14 @@ #!/bin/bash -DIR="$( dirname "${BASH_SOURCE[0]}")" yaml_list() { + test -n "${BASH_SOURCE[0]}" && DIR="$(dirname "${BASH_SOURCE[0]}")" || DIR=. python3 -c "import yaml;print(' '.join(yaml.safe_load(open('$DIR/matrix.yml'))['$1']))" } # exclude tests that we know they fail for sure PARAMS=${PARAMS:-$(yaml_list params)} -SETS=${SETS:-$(yaml_list scenario)} +SETS=${SETS:-$(yaml_list test_set)} sipssert \ $PARAMS \