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

Unified Diff: expect_tests/pipeline.py

Issue 892363002: Actually added pretest support (Closed) Base URL: https://chromium.googlesource.com/infra/testing/expect_tests@master
Patch Set: Yet another small fix Created 5 years, 11 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 | « no previous file | scripts/expect_tests » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: expect_tests/pipeline.py
diff --git a/expect_tests/pipeline.py b/expect_tests/pipeline.py
index e31a947996f5b5efb4072caa32ed01b6e7bdf098..ca2712560b197bd917bfe6c9dddf8fe4a80def29 100644
--- a/expect_tests/pipeline.py
+++ b/expect_tests/pipeline.py
@@ -399,6 +399,10 @@ def result_loop_single_context(cover_ctx, kill_switch, result_queue, opts,
opts: output of argparse.ArgumentParser.parse_args (see main.py)
processing_context (ProcessingContext): the task to perform.
"""
+ pretest_filename = os.path.join(processing_context.cwd, '.expect_tests.py')
agable 2015/02/03 04:23:48 In the documentation you committed previously, you
agable 2015/02/03 04:27:59 Also, this implementation requires the same .expec
+ if os.path.isfile(pretest_filename):
+ execfile(pretest_filename)
+
sys.path.insert(0, processing_context.cwd)
# This flag is set when test generation has finished.
« no previous file with comments | « no previous file | scripts/expect_tests » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698