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

Unified Diff: o3d/tests/lab/runner_util.py

Issue 345013: Revert 30359 - Change from absolute paths to relative paths to allow tests,et... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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 | « o3d/tests/lab/runner_constants.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: o3d/tests/lab/runner_util.py
===================================================================
--- o3d/tests/lab/runner_util.py (revision 30361)
+++ o3d/tests/lab/runner_util.py (working copy)
@@ -42,9 +42,8 @@
import runner_constants as const
import util
-CHANGE_RESOLUTION_PATH = os.path.join(const.TEST_PATH, 'lab',
- 'ChangeResolution','Debug',
- 'changeresolution.exe')
+CHANGE_RESOLUTION_PATH = (const.O3D_PATH + '/o3d/tests/lab'
+ '/ChangeResolution/Debug/changeresolution.exe')
def EnsureWindowsScreenResolution(width, height, bpp):
"""Performs all steps needed to configure system for testing on Windows.
@@ -56,8 +55,7 @@
Returns:
True on success.
"""
- if not os.path.exists(CHANGE_RESOLUTION_PATH):
- return False
+
command = 'call "%s" %d %d %d' % (CHANGE_RESOLUTION_PATH, width, height, bpp)
« no previous file with comments | « o3d/tests/lab/runner_constants.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698