Skip to content

Commit

Permalink
run-all.sh: fix directory detection
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Nov 24, 2023
1 parent 8d61b0f commit 7a8ef43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run-all.sh
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down

0 comments on commit 7a8ef43

Please sign in to comment.