john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Webapp2 tests

!/bin/sh

2013-04-04 johnpfeiffer

:> /home/ubuntu/lastrun.log echo date > /home/ubuntu/lastrun.log

cd /home/ubuntu/myproject git pull >> /home/ubuntu/lastrun.log

GAE_HOME=/usr/local/google_appengine export GAE_HOME

GAE_WEBAPP2=ls -dt1 ${GAE_HOME}/lib/webapp2* | head -n1 export GAE_WEBAPP2

GAE_JINJA2=ls -dt1 ${GAE_HOME}/lib/jinja2* | head -n1 export GAE_WEBAPP2

REPO_HOME=/home/ubuntu/myproject

PYTHONPATH=${GAE_HOME}:${GAE_HOME}/lib/yaml/lib:${GAE_HOME}/lib/antlr3:${GAE_HOME}/lib/simplejson:${GAE_HOME}/lib/fancy_urllib:${GAE_WEBAPP2}:${GAE_HOME}/lib/django_1_4:${GAE_JINJA2}:${REPO_HOME}/AppEngine2 export PYTHONPATH

py.test $*

py.test /home/ubuntu/myproject/AppEngine2-test/test_controllers/ -v >> /home/ubuntu/lastrun.log py.test /home/ubuntu/myproject/AppEngine2-test/test_services/ -v >> /home/ubuntu/lastrun.log py.test /home/ubuntu/myproject/QA -v >> /home/ubuntu/lastrun.log

cat /home/ubuntu/lastrun.log | grep FAIL


  • « decorator example ContentServiceUnexpectedExceptionDecoratorExample
  • retry decorator »

Published

Apr 4, 2013

Category

linux

~56 words

Tags

  • scripts 63
  • tests 5
  • webapp2 4