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




commit 6aa47166e89302bbf338832f9b63f1d4b3c4d1d9
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]