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

Unified Diff: o3d/tests/lab/run_lab_test.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 | « no previous file | o3d/tests/lab/runner_constants.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: o3d/tests/lab/run_lab_test.py
===================================================================
--- o3d/tests/lab/run_lab_test.py (revision 30361)
+++ o3d/tests/lab/run_lab_test.py (working copy)
@@ -62,21 +62,22 @@
join = os.path.join
if util.IsWindows():
- IMAGE_DIFF_PATH = join(const.BASE_PATH, 'third_party', 'pdiff', 'files',
+ IMAGE_DIFF_PATH = join(const.O3D_PATH, 'third_party', 'pdiff', 'files',
'bin', 'win', 'perceptualdiff.exe')
elif util.IsMac():
- IMAGE_DIFF_PATH = join(const.BASE_PATH, 'third_party', 'pdiff', 'files',
+ IMAGE_DIFF_PATH = join(const.O3D_PATH, 'third_party', 'pdiff', 'files',
'bin', 'mac', 'perceptualdiff')
else:
- IMAGE_DIFF_PATH = join(const.BASE_PATH, 'third_party', 'pdiff', 'files',
+ IMAGE_DIFF_PATH = join(const.O3D_PATH, 'third_party', 'pdiff', 'files',
'bin', 'linux', 'perceptualdiff')
-SELENIUM_TEST_RUNNER_PATH = join(const.TEST_PATH, 'selenium', 'main.py')
+SELENIUM_TEST_RUNNER_PATH = join(const.O3D_PATH, 'o3d', 'tests', 'selenium',
+ 'main.py')
-SELENIUM_JAR_PATH = join(const.BASE_PATH, 'third_party', 'selenium_rc', 'files',
+SELENIUM_JAR_PATH = join(const.O3D_PATH, 'third_party', 'selenium_rc', 'files',
'selenium-server', 'selenium-server.jar')
-O3D_REFERENCE_IMAGES_PATH = join(const.O3D_PATH, 'o3d_assets', 'tests',
+O3D_REFERENCE_IMAGES_PATH = join(const.O3D_PATH, 'o3d', 'o3d_assets', 'tests',
'screenshots')
SCREENSHOTS_PATH = join(const.RESULTS_PATH,'screenshots')
@@ -192,17 +193,23 @@
Returns:
True on success.
"""
+ # Run selenium test.
+ os.chdir(const.AUTO_PATH)
+
if util.IsWindows():
if not run_util.EnsureWindowsScreenResolution(SCREEN_WIDTH, SCREEN_HEIGHT,
SCREEN_BPP):
- logging.warn('Could not detect/change screen resolution.')
+ logging.error('Failed to configure screen resolution.')
+ return 1
+
+
# Clear all screenshots.
logging.info('** Deleting previous screenshots.')
if os.path.exists(SCREENSHOTS_PATH):
shutil.rmtree(SCREENSHOTS_PATH)
-
- os.makedirs(SCREENSHOTS_PATH)
+
+ os.makedirs(SCREENSHOTS_PATH)
logging.info('** Running selenium tests...')
@@ -256,7 +263,7 @@
config_path = argv[1]
else:
# Use default config file.
- config_path = os.path.join(const.HOME, 'test_config.txt')
+ config_path = os.path.join(const.HOME_PATH, 'test_config.txt')
# Uninstall/Install plugin.
if not run_util.UninstallO3DPlugin():
« no previous file with comments | « no previous file | o3d/tests/lab/runner_constants.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698