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

Unified Diff: scripts/slave/unittests/recipe_simulation_test.py

Issue 354913003: Add module discovery and autoloading to expect_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Fix formatting + comment Created 6 years, 6 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: scripts/slave/unittests/recipe_simulation_test.py
diff --git a/scripts/slave/unittests/recipe_simulation_test.py b/scripts/slave/unittests/recipe_simulation_test.py
index c40422ad58111de87585e5f7242cc47da2fc7185..524c0743c1cbffb1c6cc84287be0649e76e29964 100755
--- a/scripts/slave/unittests/recipe_simulation_test.py
+++ b/scripts/slave/unittests/recipe_simulation_test.py
@@ -62,6 +62,7 @@ def test_gen_coverage():
[os.path.join(x, '*', 'test_api.py') for x in recipe_util.MODULE_DIRS()]
)
+@expect_tests.test_generator
@expect_tests.covers(test_gen_coverage)
def GenerateTests():
cover_mods = []
@@ -101,4 +102,4 @@ if __name__ == '__main__':
logging.warn("Ignoring %s environment variable." % env_var)
os.environ.pop(env_var)
- expect_tests.main('recipe_simulation_test', GenerateTests)
+ expect_tests.main()
« scripts/slave/unittests/expect_tests/util.py ('K') | « scripts/slave/unittests/expect_tests/util.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698