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

Skip to content

Commit f68a190

Browse files
author
Takashi Matsuo
committed
add example
code cleanup
1 parent ffbaf61 commit f68a190

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/run_tests_local.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@
1818
# This script is a helper script for running tests with
1919
# .kokoro/trampoline_v2.sh.
2020
# run_tests_local.sh directory (sessions..)
21+
#
22+
# Example for running lint, py-3.6 and py-3.7 for cdn directory:
23+
# $ cd cdn
24+
# $ ../scripts/run_tests_local.sh .
2125

2226
set -euo pipefail
2327

24-
sessions=(
28+
default_sessions=(
2529
"lint"
2630
"py-3.6"
2731
"py-3.7"
@@ -56,6 +60,8 @@ fi
5660

5761
if [[ $# -ge 2 ]]; then
5862
sessions=("${@:2}")
63+
else
64+
sessions=("${default_sessions[@]}")
5965
fi
6066

6167
echo "Running tests for directory: ${directory}"

0 commit comments

Comments
 (0)