Skip to content

Commit

Permalink
Use xfvb-run for javascript tests
Browse files Browse the repository at this point in the history
There's no need for the complicated Xvfb setup/teardown commands when
running the Javascript test suite, when the `xvfb-run` command does
all this for us.
  • Loading branch information
lunkwill42 committed Sep 25, 2024
1 parent 3891ce8 commit f8610a1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,10 @@ commands =
[testenv:javascript]
usedevelop=True
deps = libsass==0.15.1
allowlist_externals = xvfb-run
commands_pre =
commands =
/sbin/start-stop-daemon -o --stop --quiet --pidfile /var/tmp/xvfb.pid
/sbin/start-stop-daemon --start --quiet --pidfile /var/tmp/xvfb.pid --make-pidfile --background --exec /usr/bin/Xvfb -- {env:DISPLAY} -screen 0 1024x768x24 -fbdir /var/tmp -ac
{toxinidir}/tests/javascript-test.sh "{toxinidir}"
/sbin/start-stop-daemon --stop --quiet --pidfile /var/tmp/xvfb.pid
xvfb-run {toxinidir}/tests/javascript-test.sh "{toxinidir}"

[testenv:pylint]
deps = pip-tools
Expand Down

0 comments on commit f8610a1

Please sign in to comment.