File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 95
95
./test.sh
96
96
./sa-test.sh
97
97
./test.sh debug
98
+ ./sa-test.sh debug
98
99
99
100
.PHONY : \
100
101
all \
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ DEBUG=' '
4
+
5
+ if [ -n " $1 " ] && [ $1 == ' debug' ]; then
6
+ DEBUG=' -debug'
7
+ fi
8
+
3
9
echo Building test container image
4
10
docker build -t selenium/test:local ./Test
5
11
6
12
function test_standalone {
7
13
BROWSER=$1
8
- echo Starting $BROWSER standalone container
14
+ echo Starting Selenium standalone- $BROWSER$DEBUG container
9
15
10
- SA=$( docker run -d selenium/standalone-$BROWSER :2.45.0)
16
+ SA=$( docker run -d selenium/standalone-$BROWSER$DEBUG :2.45.0)
11
17
SA_NAME=$( docker inspect -f ' {{ .Name }}' $SA | sed s:/::)
12
18
TEST_CMD=" node smoke-$BROWSER .js"
13
19
@@ -22,13 +28,13 @@ function test_standalone {
22
28
fi
23
29
24
30
if [ ! " $CIRCLECI " == " true" ]; then
25
- echo Tearing down Selenium $BROWSER standalone container
31
+ echo Tearing down Selenium standalone- $BROWSER$DEBUG container
26
32
docker stop $SA_NAME
27
33
docker rm $SA_NAME
28
34
echo Removing the test container
29
35
docker rm $TEST_CONTAINER
30
36
fi
31
37
}
32
38
33
- test_standalone firefox
34
- test_standalone chrome
39
+ test_standalone firefox $DEBUG
40
+ test_standalone chrome $DEBUG
You can’t perform that action at this time.
0 commit comments