diff options
| author | Diego Pino Garcia <dpino@igalia.com> | 2021-02-25 13:52:42 +0000 |
|---|---|---|
| committer | Patrick Griffis <tingping@tingping.se> | 2021-04-13 21:14:37 +0000 |
| commit | d6f3b297fa4c27433d582d5240394705cbb06170 (patch) | |
| tree | 8e1a6f60fdd4b923e663b30344e20e19d409f485 | |
| parent | 99259092ed5f0e3316f9f53ed10213c44bd201e9 (diff) | |
| download | libsoup-d6f3b297fa4c27433d582d5240394705cbb06170.tar.gz | |
autobahn-server.sh: Search configuration file if could not be found in working dir
| -rwxr-xr-x | tests/autobahn/autobahn-server.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/autobahn/autobahn-server.sh b/tests/autobahn/autobahn-server.sh index 74046e75..fdd80f69 100755 --- a/tests/autobahn/autobahn-server.sh +++ b/tests/autobahn/autobahn-server.sh @@ -32,7 +32,14 @@ autobahn_start() { --name fuzzingserver \ crossbario/autobahn-testsuite else - wstest -m fuzzingserver -s 'autobahn-server.json' + if [[ -f 'autobahn-server.json' ]]; then + wstest -m fuzzingserver -s 'autobahn-server.json' + else + filename=$(find . -name "autobahn-server.json" -print -quit) + if [[ -f "$filename" ]]; then + wstest -m fuzzingserver -s "$filename" + fi + fi fi } |
