brozzler/vagrant/run-tests.sh

20 lines
582 B
Bash
Raw Normal View History

#!/bin/bash
#
# any arguments are passed on to py.test
# so for example to run only "test_obey_robots" you could run
# ./run-tests.sh -k test_obey_robots
#
2016-10-14 13:47:54 -07:00
cd $(dirname "${BASH_SOURCE[0]}")
echo service status:
vagrant ssh -- 'status warcprox ;
status Xvnc ;
status brozzler-worker ;
2016-11-04 17:46:23 -07:00
status brozzler-dashboard ;
status vnc-websock'
echo
2016-10-14 13:47:54 -07:00
vagrant ssh -- 'source /opt/brozzler-ve34/bin/activate && pip install pytest'
vagrant ssh -- "source /opt/brozzler-ve34/bin/activate && DISPLAY=:1 py.test -v /brozzler/tests $@"