summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-09-23 23:18:16 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-20 14:45:16 +0200
commitad028c555d8517091b60bf9aff97fa0ab22a93ac (patch)
tree1a542686f3f5f383a520bedc86ea18105639010f /apps
parent8467dbfa91921ccb0262161360edbf339f6b7daa (diff)
downloadnextcloud-server-ad028c555d8517091b60bf9aff97fa0ab22a93ac.tar.gz
nextcloud-server-ad028c555d8517091b60bf9aff97fa0ab22a93ac.zip
Don't attempt to run tests unless start file is successful
Diffstat (limited to 'apps')
-rwxr-xr-xapps/files_external/tests/env/start-smb-windows.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_external/tests/env/start-smb-windows.sh b/apps/files_external/tests/env/start-smb-windows.sh
index 2143d7e7499..6779cdb2d56 100755
--- a/apps/files_external/tests/env/start-smb-windows.sh
+++ b/apps/files_external/tests/env/start-smb-windows.sh
@@ -19,6 +19,12 @@ user=smb-test
password=!owncloud123
host=WIN-9GTFAS08C15
+if ! (nc -c -w 1 ${host} 445 </dev/null >&/dev/null \
+ || nc -w 1 ${host} 445 </dev/null >&/dev/null); then
+ echo "[ERROR] Server not reachable" >&2
+ exit 1
+fi
+
cat > $thisFolder/config.smb.php <<DELIM
<?php