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

Unified Diff: chrome/test/functional/media/pyauto_media.py

Issue 7031020: Change for preparation for reference-build on perfbot (media) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Minir change. Created 9 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: chrome/test/functional/media/pyauto_media.py
diff --git a/chrome/test/functional/media/pyauto_media.py b/chrome/test/functional/media/pyauto_media.py
index c40598df88fdbe0c72d37bc7b1eb6cc275843261..c6431724c323707b2c85d69f92d6edec24c56d91 100644
--- a/chrome/test/functional/media/pyauto_media.py
+++ b/chrome/test/functional/media/pyauto_media.py
@@ -25,6 +25,12 @@ idea).
import os
import sys
+from media_test_env_names import MediaTestEnvNames
+
+# Define the location of the binary used for reference build
dennis_jeffrey 2011/05/19 01:20:13 Add period at the end of this sentence.
imasaki1 2011/05/20 05:12:01 Done.
+# TODO(imasaki): change this directory once reference build
+# directory is set.
+REFERENCE_BUILD_DIR = os.path.join('/tmp','chrome-linux')
def _SetupPaths():
"""Setting path to find pyauto_functional.py."""
@@ -34,6 +40,9 @@ def _SetupPaths():
sys.path.append(os.path.normpath(os.path.join(
media_dir, os.pardir, os.pardir, os.pardir, os.pardir,
'third_party', 'psutil')))
+ # Setting PYTHONPATH for reference build
dennis_jeffrey 2011/05/19 01:20:13 Add period at the end of this sentence.
imasaki1 2011/05/20 05:12:01 Done.
+ if eval(os.getenv(MediaTestEnvNames.REFERENCE_BUILD_ENV_NAME)):
dennis_jeffrey 2011/05/19 01:20:13 (optional) I recommend adding a comment here that
Nirnimesh 2011/05/19 06:40:20 Don't eval. Just: if os.getenv(...): sys.path.
imasaki1 2011/05/20 05:12:01 Done.
imasaki1 2011/05/20 05:12:01 Changed based on Nirnimesh's comments.
+ sys.path.insert(0, REFERENCE_BUILD_DIR)
_SetupPaths()

Powered by Google App Engine
This is Rietveld 408576698