Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db381fd

Browse files
committed
make sure that all CLI arg are passed to image test scripts
1 parent 98d2a4e commit db381fd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tasks/baseline.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ CMD=(
1414
"cp -f test/image/index.html ../server_app/index.html &&"
1515
"supervisorctl restart nw1 &&"
1616
"wget --server-response --spider --tries=10 --retry-connrefused http://localhost:9010/ping &&"
17-
"node test/image/make_baseline.js $1"
17+
"node test/image/make_baseline.js $@"
1818
)
1919

2020
docker exec -i $CONTAINER_NAME /bin/bash -c "${CMD[*]}"

tasks/test_export.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ CMD=(
1414
"cp -f test/image/index.html ../server_app/index.html &&"
1515
"supervisorctl restart nw1 && "
1616
"wget --server-response --spider --tries=10 --retry-connrefused http://localhost:9010/ping &&"
17-
"node test/image/export_test.js $1"
17+
"node test/image/export_test.js $@"
1818
)
1919

2020
docker exec -i $CONTAINER_NAME /bin/bash -c "${CMD[*]}"

tasks/test_image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ CMD=(
1414
"cp -f test/image/index.html ../server_app/index.html &&"
1515
"supervisorctl restart nw1 && "
1616
"wget --server-response --spider --tries=10 --retry-connrefused http://localhost:9010/ping &&"
17-
"node test/image/compare_pixels_test.js $1"
17+
"node test/image/compare_pixels_test.js $@"
1818
)
1919

2020
docker exec -i $CONTAINER_NAME /bin/bash -c "${CMD[*]}"

0 commit comments

Comments
 (0)