Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 8f5bfc4

Browse files
chore(py_library): add split_system_tests
Source-Author: Takashi Matsuo <[email protected]> Source-Date: Fri Jul 31 16:17:13 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: bfcdbe0da977b2de6c1c0471bb6dc2f1e13bf669 Source-Link: googleapis/synthtool@bfcdbe0
1 parent 56abfbc commit 8f5bfc4

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.kokoro/build.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,10 @@ python3.6 -m pip uninstall --yes --quiet nox-automation
3636
python3.6 -m pip install --upgrade --quiet nox
3737
python3.6 -m nox --version
3838

39-
python3.6 -m nox
39+
# If NOX_SESSION is set, it only runs the specified session,
40+
# otherwise run all the sessions.
41+
if [[ -n "${NOX_SESSION:-}" ]]; then
42+
python3.6 -m nox -s "${NOX_SESSION:-}"
43+
else
44+
python3.6 -m nox
45+
fi

noxfile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ def system(session):
100100
"""Run the system test suite."""
101101
system_test_path = os.path.join("tests", "system.py")
102102
system_test_folder_path = os.path.join("tests", "system")
103+
104+
# Check the value of `RUN_SYSTEM_TESTS` env var. It defaults to true.
105+
if os.environ.get("RUN_SYSTEM_TESTS", "true") == "false":
106+
session.skip("RUN_SYSTEM_TESTS is set to false, skipping")
103107
# Sanity check: Only run tests if the environment variable is set.
104108
if not os.environ.get("GOOGLE_APPLICATION_CREDENTIALS", ""):
105109
session.skip("Credentials must be set via environment variable")

synth.metadata

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "39b527a39f5cd56d4882b3874fc08eed4756cebe"
22+
"sha": "bfcdbe0da977b2de6c1c0471bb6dc2f1e13bf669"
2323
}
2424
},
2525
{
2626
"git": {
2727
"name": "synthtool",
2828
"remote": "https://github.com/googleapis/synthtool.git",
29-
"sha": "39b527a39f5cd56d4882b3874fc08eed4756cebe"
29+
"sha": "bfcdbe0da977b2de6c1c0471bb6dc2f1e13bf669"
3030
}
3131
}
3232
],

0 commit comments

Comments
 (0)