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

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: Fix commandline help document bug. 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'))
Nirnimesh 2011/05/23 17:52:44 why hardcode to chrome-linux?
imasaki1 2011/05/23 18:58:47 This is just test directory, it will be change lat
Nirnimesh 2011/05/23 20:13:11 Even if it's experimental or temporary, it seems l
imasaki1 2011/05/23 20:26:23 Done.
+ sys.path.insert(0, reference_build_dir)
_SetupPaths()
« no previous file with comments | « chrome/test/functional/media/media_test_runner.py ('k') | chrome/test/functional/media/ui_perf_test_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698