From d6f3b297fa4c27433d582d5240394705cbb06170 Mon Sep 17 00:00:00 2001 From: Diego Pino Garcia Date: Thu, 25 Feb 2021 13:52:42 +0000 Subject: autobahn-server.sh: Search configuration file if could not be found in working dir --- tests/autobahn/autobahn-server.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 } -- cgit v1.2.1