Skip to content

Instantly share code, notes, and snippets.

@gsnedders
Created March 6, 2018 15:34
Show Gist options
  • Save gsnedders/4e084acad5a47db572054a12e1422ad6 to your computer and use it in GitHub Desktop.
Save gsnedders/4e084acad5a47db572054a12e1422ad6 to your computer and use it in GitHub Desktop.
py27 installed: asn1crypto==0.24.0,attrs==17.4.0,blessings==1.6.1,certifi==2018.1.18,cffi==1.11.4,coverage==4.5,cryptography==2.1.4,enum34==1.1.6,funcsigs==1.0.2,html5lib==1.0.1,hypothesis==3.44.25,idna==2.6,ipaddress==1.0.19,marionette-driver==2.5.0,mozcrash==1.0,mozdebug==0.1,mozdevice==0.52,mozfile==1.2,mozinfo==0.10,mozleak==0.1,mozlog==3.7,moznetwork==0.27,mozprocess==0.26,mozprofile==0.29,mozrunner==6.14,mozterm==0.1.0,mozversion==1.5,pluggy==0.6.0,py==1.5.2,pycparser==2.18,pyOpenSSL==17.5.0,pytest==3.4.0,pytest-cov==2.5.1,selenium==3.8.1,six==1.11.0,urllib3==1.22,webencodings==0.5.1
py27 runtests: PYTHONHASHSEED='3294782886'
py27 runtests: commands[0] | pytest --cov -vv --no-cov
============================= test session starts ==============================
platform darwin -- Python 2.7.14, pytest-3.4.0, py-1.5.2, pluggy-0.6.0 -- /Users/gsnedders/Documents/other-projects/wpt/web-platform-tests/tools/wpt/.tox/py27/bin/python2.7
cachedir: ../.pytest_cache
rootdir: /Users/gsnedders/Documents/other-projects/wpt/web-platform-tests/tools, inifile: pytest.ini
plugins: cov-2.5.1, mozlog-3.7, hypothesis-3.44.25
collecting ... collected 12 items
tests/test_stability.py::test_is_inconsistent PASSED [ 8%]
tests/test_wpt.py::test_missing PASSED [ 16%]
tests/test_wpt.py::test_help PASSED [ 25%]
tests/test_wpt.py::test_run_firefox FAILED [ 33%]
tests/test_wpt.py::test_run_chrome PASSED [ 41%]
tests/test_wpt.py::test_install_chromedriver PASSED [ 50%]
tests/test_wpt.py::test_install_firefox FAILED [ 58%]
tests/test_wpt.py::test_files_changed PASSED [ 66%]
tests/test_wpt.py::test_files_changed_ignore PASSED [ 75%]
tests/test_wpt.py::test_files_changed_ignore_rules PASSED [ 83%]
tests/test_wpt.py::test_tests_affected PASSED [ 91%]
tests/test_wpt.py::test_serve SKIPPED [100%]
WARNING: Coverage disabled via --no-cov switch!
=================================== FAILURES ===================================
_______________________________ test_run_firefox _______________________________
manifest_dir = '/var/folders/vz/49fjtt155dd0f745pgdvkg9h0000gn/T/tmpQcMmwl'
@pytest.mark.slow
@pytest.mark.remote_network
@pytest.mark.xfail(sys.platform == "win32",
reason="Tests currently don't work on Windows for path reasons")
def test_run_firefox(manifest_dir):
# TODO: It seems like there's a bug in argparse that makes this argument order required
# should try to work around that
if is_port_8000_in_use():
pytest.skip("port 8000 already in use")
os.environ["MOZ_HEADLESS"] = "1"
try:
fx_path = os.path.join(wpt.localpaths.repo_root, "_venv", "firefox")
if os.path.exists(fx_path):
shutil.rmtree(fx_path)
with pytest.raises(SystemExit) as excinfo:
wpt.main(argv=["run", "--no-pause", "--install-browser", "--yes",
"--metadata", manifest_dir,
> "firefox", "/dom/nodes/Element-tagName.html"])
tests/test_wpt.py:84:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
wpt.py:132: in main
rv = script(*args, **kwargs)
run.py:438: in run
**kwargs)
run.py:416: in setup_wptrunner
kwargs["binary"] = setup_cls.install(venv)
run.py:151: in install
return self.browser.install(venv.path)
browser.py:128: in install
mozinstall.uninstall(dest+'/Firefox Nightly.app')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
install_folder = '/Users/gsnedders/Documents/other-projects/wpt/web-platform-tests/_venv/Firefox Nightly.app'
def uninstall(install_folder):
"""Uninstalls the application in the specified path. If it has been
installed via an installer on Windows, use the uninstaller first.
:param install_folder: Path of the installation folder
"""
install_folder = os.path.realpath(install_folder)
assert os.path.isdir(install_folder), \
> 'installation folder "%s" exists.' % install_folder
E AssertionError: installation folder "/Users/gsnedders/Documents/other-projects/wpt/web-platform-tests/_venv/Firefox Nightly.app" exists.
../../_venv/lib/python2.7/site-packages/mozinstall/mozinstall.py:215: AssertionError
----------------------------- Captured stdout call -----------------------------
0:00.42 INFO Installing browser
----------------------------- Captured stderr call -----------------------------
hdiutil: attach failed - no mountable file systems
_____________________________ test_install_firefox _____________________________
@pytest.mark.slow
@pytest.mark.remote_network
@pytest.mark.xfail(sys.platform == "win32",
reason="Tests currently don't work on Windows for path reasons")
def test_install_firefox():
fx_path = os.path.join(wpt.localpaths.repo_root, "_venv", "firefox")
if os.path.exists(fx_path):
shutil.rmtree(fx_path)
with pytest.raises(SystemExit) as excinfo:
> wpt.main(argv=["install", "firefox", "browser"])
tests/test_wpt.py:130:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
wpt.py:132: in main
rv = script(*args, **kwargs)
install.py:30: in run
install(browser, kwargs["component"], destination)
install.py:41: in install
getattr(subclass(), method)(dest=destination)
browser.py:128: in install
mozinstall.uninstall(dest+'/Firefox Nightly.app')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
install_folder = '/Users/gsnedders/Documents/other-projects/wpt/web-platform-tests/_venv/Firefox Nightly.app'
def uninstall(install_folder):
"""Uninstalls the application in the specified path. If it has been
installed via an installer on Windows, use the uninstaller first.
:param install_folder: Path of the installation folder
"""
install_folder = os.path.realpath(install_folder)
assert os.path.isdir(install_folder), \
> 'installation folder "%s" exists.' % install_folder
E AssertionError: installation folder "/Users/gsnedders/Documents/other-projects/wpt/web-platform-tests/_venv/Firefox Nightly.app" exists.
../../_venv/lib/python2.7/site-packages/mozinstall/mozinstall.py:215: AssertionError
----------------------------- Captured stdout call -----------------------------
Now installing firefox browser...
----------------------------- Captured stderr call -----------------------------
INFO:mozdownload.scraper:Retrieving the build status file from https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
INFO:mozdownload.scraper:Retrieving the build status file from https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
INFO:mozdownload.scraper:Retrieving list of builds from https://archive.mozilla.org/pub/firefox/nightly/2018/03/
INFO:mozdownload.scraper:Retrieving list of builds from https://archive.mozilla.org/pub/firefox/nightly/2018/03/
INFO:mozdownload.scraper:Found 1 build: 2018-03-06-10-01-23-mozilla-central
INFO:mozdownload.scraper:Found 1 build: 2018-03-06-10-01-23-mozilla-central
INFO:mozdownload.scraper:Selected build: 2018-03-06-10-01-23-mozilla-central
INFO:mozdownload.scraper:Selected build: 2018-03-06-10-01-23-mozilla-central
INFO:mozdownload.scraper:File has already been downloaded: /Users/gsnedders/Documents/other-projects/wpt/web-platform-tests/_venv/2018-03-06-10-01-23-mozilla-central-firefox-60.0a1.en-US.mac.dmg
INFO:mozdownload.scraper:File has already been downloaded: /Users/gsnedders/Documents/other-projects/wpt/web-platform-tests/_venv/2018-03-06-10-01-23-mozilla-central-firefox-60.0a1.en-US.mac.dmg
hdiutil: attach failed - no mountable file systems
------------------------------ Captured log call -------------------------------
scraper.py 411 INFO Retrieving the build status file from https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
scraper.py 458 INFO Retrieving list of builds from https://archive.mozilla.org/pub/firefox/nightly/2018/03/
scraper.py 329 INFO Found 1 build: 2018-03-06-10-01-23-mozilla-central
scraper.py 494 INFO Selected build: 2018-03-06-10-01-23-mozilla-central
scraper.py 259 INFO File has already been downloaded: /Users/gsnedders/Documents/other-projects/wpt/web-platform-tests/_venv/2018-03-06-10-01-23-mozilla-central-firefox-60.0a1.en-US.mac.dmg
=============================== warnings summary ===============================
None
Coverage disabled via --no-cov switch!
-- Docs: http://doc.pytest.org/en/latest/warnings.html
========== 2 failed, 9 passed, 1 skipped, 1 warnings in 76.75 seconds ==========
ERROR: InvocationError: '/Users/gsnedders/Documents/other-projects/wpt/web-platform-tests/tools/wpt/.tox/py27/bin/pytest --cov -vv --no-cov'
___________________________________ summary ____________________________________
ERROR: py27: commands failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment