Welcome to mirror list, hosted at ThFree Co, Russian Federation.

stop-local-server « test - github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f187848f9794adeb652aa712ec49f8cfa0cf1c83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

# Do not run as CGI
if [ -n "$GATEWAY_INTERFACE" ] ; then
    echo 'Can not invoke as CGI!'
    exit 1
fi

set -e
set -x

if [ "$CI_MODE" != "selenium" ] ; then
    echo "Not in CI_MODE=selenium"
    exit 0
fi

if [ ! -z "$TESTSUITE_BROWSERSTACK_KEY" ] ; then
    # Stop BrowserStack Local forwarder
    ~/browserstack/BrowserStackLocal --daemon stop
fi

if [ -f ~/selenium-standalone.pid~ ] ; then
    # Stop selenium-standalone server
    kill $(cat ~/selenium-standalone.pid~)
    rm ~/selenium-standalone.pid~
fi