run_tests always requires selenium (even without '--with-selenium')
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Gary W. Smith | ||
Juno |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When packaging horizon, distros may use ./run_tests.sh -N and supply the required python packages externally. If selenium is not present on the system and run_tests.sh is invoked without selenium (i.e. the arguments --with-selenium and --only-selenium are NOT used), it will fail.
Below is the Python stack dump when building Horizon Juno RC1 in Debian:
=======
ERROR: Failure: ImportError (No module named selenium.common)
-------
Traceback (most recent call last):
File "/usr/lib/
addr.filename, addr.module)
File "/usr/lib/
return self.importFrom
File "/usr/lib/
mod = load_module(
File "/home/
from selenium.common import exceptions as selenium_exceptions
ImportError: No module named selenium.common
Please make the selenium import optional (with an except ImportError: to catch it).
description: | updated |
Changed in horizon: | |
importance: | Undecided → Medium |
Changed in horizon: | |
assignee: | nobody → Gary W. Smith (gary-w-smith) |
Changed in horizon: | |
milestone: | none → kilo-1 |
tags: | added: juno-backport-potential |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | kilo-1 → 2015.1.0 |
Thanks for the bug report. Please help by clarifying: www.seleniumhq. org/about/ license. jsp), the same as OpenStack, so why is the license an issue?
1. What command / options are you using that cause this output?
2. Selenium is licensed under apache 2.0 (http://
3. As far as I can see, Selenium is only used in the test code, which I would not expect to be distributed with the final product. So even if it was non-free, why should this be an issue?