← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1377372] Re: run_tests always requires selenium (even without '--with-selenium')

 

** Also affects: horizon/juno
   Importance: Undecided
       Status: New

** Changed in: horizon/juno
       Status: New => Fix Committed

** Changed in: horizon/juno
    Milestone: None => 2014.2.2

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1377372

Title:
  run_tests always requires selenium (even without '--with-selenium')

Status in OpenStack Dashboard (Horizon):
  Fix Released
Status in OpenStack Dashboard (Horizon) juno series:
  Fix Committed

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/python2.7/dist-packages/nose/loader.py", line 414, in loadTestsFromName
      addr.filename, addr.module)
    File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
      return self.importFromDir(dir_path, fqname)
    File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
      mod = load_module(part_fqname, fh, filename, desc)
    File "/home/zigo/sources/openstack/juno/horizon/build-area/horizon-2014.2~rc1/horizon/test/webdriver.py", line 24, in <module>
      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).

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1377372/+subscriptions


References