summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-05 00:30:55 +0000
committerkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-05 00:30:55 +0000
commit971f6ffbca36a79af12fd43da01336b9a3ca3a8b (patch)
tree13121078f6de76bf6e534d71a08c93298b6c3986
parentd5824151f58496738d27ec9c3078cf14a14dd341 (diff)
downloadchromium_src-971f6ffbca36a79af12fd43da01336b9a3ca3a8b.zip
chromium_src-971f6ffbca36a79af12fd43da01336b9a3ca3a8b.tar.gz
chromium_src-971f6ffbca36a79af12fd43da01336b9a3ca3a8b.tar.bz2
Fix chromedriver tests on the new git workflow.
BUG=none TEST=none Review URL: http://codereview.chromium.org/8477017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108750 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--DEPS11
-rw-r--r--chrome/test/functional.DEPS/DEPS2
-rw-r--r--chrome/test/pyautolib/pyauto.py2
-rw-r--r--chrome/test/pyautolib/webdriver.DEPS/DEPS2
-rw-r--r--chrome/test/webdriver/test/run_webdriver_tests.py9
-rw-r--r--chrome/test/webdriver/test/test_paths.py2
6 files changed, 16 insertions, 12 deletions
diff --git a/DEPS b/DEPS
index f5321eb..62435a4 100644
--- a/DEPS
+++ b/DEPS
@@ -224,14 +224,9 @@ deps = {
"src/third_party/swig/Lib":
"/trunk/deps/third_party/swig/Lib@" + Var("swig_revision"),
- # WebDriver keeps client and test code separate, and merges when the
- # python egg is installed. We run tests directly from src, so import
- # the code into the structure expected by the tests.
- # Make sure you update chrome/test/functional.DEPS/DEPS too.
- "src/third_party/webdriver/python/selenium":
- "http://selenium.googlecode.com/svn/trunk/py/selenium@13487",
- "src/third_party/webdriver/python/selenium/test":
- "http://selenium.googlecode.com/svn/trunk/py/test@13487",
+ # Make sure you update the two functional.DEPS and webdriver.DEPS too.
+ "src/third_party/webdriver/pylib":
+ "http://selenium.googlecode.com/svn/trunk/py@13487",
"src/third_party/libvpx":
"/trunk/deps/third_party/libvpx@" +
diff --git a/chrome/test/functional.DEPS/DEPS b/chrome/test/functional.DEPS/DEPS
index b9bc7eb..994de82 100644
--- a/chrome/test/functional.DEPS/DEPS
+++ b/chrome/test/functional.DEPS/DEPS
@@ -9,7 +9,7 @@ deps = {
'src/third_party/simplejson': '/trunk/src/third_party/simplejson',
'src/third_party/tlslite': '/trunk/src/third_party/tlslite',
'src/third_party/psutil': '/trunk/src/third_party/psutil',
- 'src/third_party/webdriver/python/selenium':
+ 'src/third_party/webdriver/pylib/selenium':
'http://selenium.googlecode.com/svn/trunk/py/selenium@13487',
}
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py
index a7df82e..a60e791 100644
--- a/chrome/test/pyautolib/pyauto.py
+++ b/chrome/test/pyautolib/pyauto.py
@@ -55,7 +55,7 @@ def _LocateBinDirs():
deps_dirs = [
os.path.dirname(__file__),
pyauto_paths.GetThirdPartyDir(),
- os.path.join(pyauto_paths.GetThirdPartyDir(), 'webdriver', 'python'),
+ os.path.join(pyauto_paths.GetThirdPartyDir(), 'webdriver', 'pylib'),
]
sys.path += map(os.path.normpath, pyauto_paths.GetBuildDirs() + deps_dirs)
diff --git a/chrome/test/pyautolib/webdriver.DEPS/DEPS b/chrome/test/pyautolib/webdriver.DEPS/DEPS
index 8ab2ac8..73bca65 100644
--- a/chrome/test/pyautolib/webdriver.DEPS/DEPS
+++ b/chrome/test/pyautolib/webdriver.DEPS/DEPS
@@ -1,5 +1,5 @@
deps = {
# This is only used by the buildbot master config for chrome official.
- 'src/third_party/webdriver/python/selenium':
+ 'src/third_party/webdriver/pylib/selenium':
'http://selenium.googlecode.com/svn/trunk/py/selenium@13487',
}
diff --git a/chrome/test/webdriver/test/run_webdriver_tests.py b/chrome/test/webdriver/test/run_webdriver_tests.py
index c23cdf1..02bcdbf 100644
--- a/chrome/test/webdriver/test/run_webdriver_tests.py
+++ b/chrome/test/webdriver/test/run_webdriver_tests.py
@@ -266,6 +266,15 @@ class Main(object):
# TODO(kkania): Remove this hack.
self._FakePytestHack()
+ # In the webdriver tree, the python 'test' module is moved under the root
+ # 'selenium' one for testing. Here we mimic that by setting the 'selenium'
+ # module's 'test' attribute and adding 'selenium.test' to the system
+ # modules.
+ import selenium
+ import test
+ selenium.test = test
+ sys.modules['selenium.test'] = test
+
test_names = self._GetTestNames(self._args)
# The tests expect to run with preset 'driver' and 'webserver' class
diff --git a/chrome/test/webdriver/test/test_paths.py b/chrome/test/webdriver/test/test_paths.py
index ec766b0..059ed62 100644
--- a/chrome/test/webdriver/test/test_paths.py
+++ b/chrome/test/webdriver/test/test_paths.py
@@ -20,7 +20,7 @@ def _SetupPaths():
SRC_THIRD_PARTY = J(start_dir, os.pardir, os.pardir, os.pardir, os.pardir,
'third_party')
webdriver = J(SRC_THIRD_PARTY, 'webdriver')
- PYTHON_BINDINGS = J(webdriver, 'python')
+ PYTHON_BINDINGS = J(webdriver, 'pylib')
WEBDRIVER_TEST_DATA = J(webdriver, 'test_data')
global CHROMEDRIVER_EXE