Skip to content

Commit 0e5968c

Browse files
authored
chore(migration): Migrate code from googleapis/python-pubsub into packages/google-cloud-pubsub (#16004)
See #10930. This PR should be merged with a merge-commit, not a squash-commit, in order to preserve the git history.
2 parents afa0faa + 37b4d7d commit 0e5968c

File tree

235 files changed

+108409
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

235 files changed

+108409
-5
lines changed

.kokoro/system.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ packages_with_system_tests=(
9696
"google-cloud-error-reporting"
9797
"google-cloud-firestore"
9898
"google-cloud-logging"
99+
"google-cloud-pubsub"
99100
"google-cloud-testutils"
100101
)
101102

@@ -106,12 +107,16 @@ system_test_script="${PROJECT_ROOT}/.kokoro/system-single.sh"
106107
packages_with_system_tests_pattern=$(printf "|*%s*" "${packages_with_system_tests[@]}")
107108
packages_with_system_tests_pattern="${packages_with_system_tests_pattern:1}" # Remove the leading pipe
108109

109-
# Run system tests for each package with directory `packages/*/tests/system` or directory `packages/*/system_tests`
110-
for dir in `find 'packages' -type d -wholename 'packages/*/tests/system' -o -wholename 'packages/*/system_tests'`; do
110+
# Run system tests for each package with directory packages/*/tests/system
111+
for path in `find 'packages' \
112+
\( -type d -wholename 'packages/*/tests/system' \) -o \
113+
\( -type d -wholename 'packages/*/system_tests' \) -o \
114+
\( -type f -wholename 'packages/*/tests/system.py' \)`; do
115+
111116
# Extract the package name and define the relative package path
112-
# 1. Remove the 'packages/' prefix from the start
113-
# 2. Remove everything after the first '/' remaining
114-
package_name=${dir#packages/}
117+
# 1. Remove the 'packages/' prefix
118+
# 2. Remove everything after the first '/'
119+
package_name=${path#packages/}
115120
package_name=${package_name%%/*}
116121
package_path="packages/${package_name}"
117122

0 commit comments

Comments
 (0)