[libsoup/autobahn-integration-new: 20/23] autobahn-server.sh: Search configuration file if could not be found in working dir




commit 23586bd0a45c046590f8bd07966514482963298b
Author: Diego Pino Garcia <dpino igalia com>
Date:   Thu Feb 25 13:52:42 2021 +0000

    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
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]