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

Unified Diff: expect_tests/pipeline.py

Issue 895433004: Fixed the pretest filename (Closed) Base URL: https://chromium.googlesource.com/infra/testing/expect_tests@master
Patch Set: Some more fixes 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 | « README.md ('k') | no next file » | 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 ca2712560b197bd917bfe6c9dddf8fe4a80def29..3c5e1638b3d2495d851b04034ab2889ce3efbdc2 100644
--- a/expect_tests/pipeline.py
+++ b/expect_tests/pipeline.py
@@ -399,7 +399,11 @@ 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')
+ assert os.path.isabs(processing_context.cwd)
+ # pretest_filename can officially be accessed by .expect_tests_pretest.py to
+ # get to this file's location. So no renaming!
+ pretest_filename = os.path.join(processing_context.cwd,
+ '.expect_tests_pretest.py')
if os.path.isfile(pretest_filename):
execfile(pretest_filename)
« no previous file with comments | « README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698