From c90c73372ebd26743e0911000073fab3a8fce285 Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Wed, 21 Dec 2016 15:15:03 -0800 Subject: [PATCH] need $DISPLAY set for test_brozzling.py --- .travis.yml | 2 +- setup.py | 2 +- vagrant/run-tests.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3d745c6..bbdbadf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ install: - ansible-playbook --extra-vars="brozzler_pip_name=file://$TRAVIS_BUILD_DIR#egg=brozzler user=travis" --inventory-file=ansible/hosts-localhost ansible/playbook.yml - pip install $TRAVIS_BUILD_DIR pytest script: -- py.test -v -s tests +- DISPLAY=:1 py.test -v -s tests after_failure: - sudo cat /var/log/upstart/warcprox.log - sudo cat /var/log/upstart/brozzler-worker.log diff --git a/setup.py b/setup.py index 96cbd90..618c0c8 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ def find_package_data(package): setuptools.setup( name='brozzler', - version='1.1b9.dev153', + version='1.1b9.dev154', description='Distributed web crawling with browsers', url='https://github.com/internetarchive/brozzler', author='Noah Levitt', diff --git a/vagrant/run-tests.sh b/vagrant/run-tests.sh index 710438b..1fe7410 100755 --- a/vagrant/run-tests.sh +++ b/vagrant/run-tests.sh @@ -16,4 +16,4 @@ vagrant ssh -- 'status warcprox ; echo vagrant ssh -- 'source /opt/brozzler-ve34/bin/activate && pip install pytest' -vagrant ssh -- "source /opt/brozzler-ve34/bin/activate && py.test -v -s /brozzler/tests $@" +vagrant ssh -- "source /opt/brozzler-ve34/bin/activate && DISPLAY=:1 py.test -v -s /brozzler/tests $@"