summaryrefslogtreecommitdiffstats
path: root/o3d/tests/lab/runner_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/tests/lab/runner_util.py')
-rw-r--r--o3d/tests/lab/runner_util.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/o3d/tests/lab/runner_util.py b/o3d/tests/lab/runner_util.py
index 46bd32e..46a9ba7 100644
--- a/o3d/tests/lab/runner_util.py
+++ b/o3d/tests/lab/runner_util.py
@@ -42,8 +42,9 @@ import sys
import runner_constants as const
import util
-CHANGE_RESOLUTION_PATH = (const.O3D_PATH + '/o3d/tests/lab'
- '/ChangeResolution/Debug/changeresolution.exe')
+CHANGE_RESOLUTION_PATH = os.path.join(const.TEST_PATH, 'lab',
+ 'ChangeResolution','Debug',
+ 'changeresolution.exe')
def EnsureWindowsScreenResolution(width, height, bpp):
"""Performs all steps needed to configure system for testing on Windows.
@@ -55,7 +56,8 @@ def EnsureWindowsScreenResolution(width, height, bpp):
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)