Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Unified Diff: test.py

Issue 2179853002: Added packages/infra_libs as the first Python package. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Final rebase (no actual changes) Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/infra_libs/setup.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test.py
diff --git a/test.py b/test.py
index 3221a553bed5dc4f5760675c48bf463f8b4a7dc5..97bf9e4a6664b784962c4589fb3cab428bb703f1 100755
--- a/test.py
+++ b/test.py
@@ -46,13 +46,20 @@ WIN_ENABLED_PACKAGES = [
'infra/services/service_manager',
'infra/services/sysmon',
+ # TODO(sergeyberezin): remove this section when infra_libs is removed.
'infra_libs/event_mon',
'infra_libs/infra_types',
'infra_libs/logs',
'infra_libs/time_functions',
'infra_libs/ts_mon',
-
'infra_libs:infra_libs.test.*',
+
+ 'packages/infra_libs/infra_libs/event_mon',
+ 'packages/infra_libs/infra_libs/infra_types',
+ 'packages/infra_libs/infra_libs/logs',
+ 'packages/infra_libs/infra_libs/time_functions',
+ 'packages/infra_libs/infra_libs/ts_mon',
+ 'packages/infra_libs/infra_libs:infra_libs.test.*',
]
@@ -104,6 +111,17 @@ if not modules:
[d for d in appengine_dirs if os.path.isfile(os.path.join(d,
'.coveragerc'))]
))
+ packages_dir = os.path.join(INFRA_ROOT, 'packages')
+ if sys.platform != 'win32' and os.path.isdir(packages_dir):
+ packages_dirs = [
+ os.path.join('packages', d)
+ for d in os.listdir(packages_dir)
+ ]
+ # Use relative paths to shorten the command-line
+ modules.extend(itertools.chain(
+ [d for d in packages_dirs if os.path.isfile(os.path.join(d,
+ '.coveragerc'))]
+ ))
os.environ['PYTHONPATH'] = ''
os.chdir(INFRA_ROOT)
« no previous file with comments | « packages/infra_libs/setup.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698