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

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: Add a space. 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..27d73c9436eca300d0278f015deb7a802ccc4d21 100644
--- a/chrome/test/functional/media/pyauto_media.py
+++ b/chrome/test/functional/media/pyauto_media.py
@@ -24,6 +24,9 @@ idea).
import os
import sys
+import tempfile
+
+from media_test_env_names import MediaTestEnvNames
def _SetupPaths():
@@ -34,6 +37,14 @@ 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.
+ if os.getenv(MediaTestEnvNames.REFERENCE_BUILD_ENV_NAME):
+ reference_build_dir = os.getenv(
+ MediaTestEnvNames.REFERENCE_BUILD_DIR_ENV_NAME,
+ # Default dir is just for testing so this dir must
+ # be set in the build script.
+ os.path.join(tempfile.gettempdir(), 'chrome-linux'))
+ sys.path.insert(0, reference_build_dir)
_SetupPaths()

Powered by Google App Engine
This is Rietveld 408576698