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

Unified Diff: recipe_modules/python/example.py

Issue 2875823002: Add vpython support to Python recipe module. (Closed)
Patch Set: Created 3 years, 7 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
Index: recipe_modules/python/example.py
diff --git a/recipe_modules/python/example.py b/recipe_modules/python/example.py
index 4e35c8a9d9352b9d34211c8400bafb5f05adc4b0..728de39b53387ebed957fe463500f58e2a289536 100644
--- a/recipe_modules/python/example.py
+++ b/recipe_modules/python/example.py
@@ -5,6 +5,7 @@
"""Launches the repo bundler."""
DEPS = [
+ 'path',
'python',
'raw_io',
'step',
@@ -30,6 +31,11 @@ def RunSteps(api):
api.python.inline('inline', 'print "Hello World!"')
+ # Test "vpython"-based invocation.
+ api.python('run vpython.script', api.resource('test.py'), venv=True)
iannucci 2017/05/10 22:46:14 let's do test_embedded.py and test_external.py
+ api.python('run vpython.spec', api.resource('test.py'), args=['--verify'],
+ venv=api.resource('test.vpython'))
+
def GenTests(api):
yield api.test('basic')

Powered by Google App Engine
This is Rietveld 408576698