view test/runtests.sh @ 339:6ee17c4dd6b8

Increase timeout
author Windel Bouwman
date Fri, 21 Feb 2014 13:35:07 +0100
parents b145f8e6050b
children 11c5a8a70c02
line wrap: on
line source

#!/usr/bin/env bash

export PYTHONPATH=$PYTHONPATH:`pwd`/../python

if [ "$1" == "loop" ]
then
  DIR=..
  while :; do
    python -m unittest
    cd gui
    #python -m unittest -v
    cd ..
    echo "Awaiting changes in $DIR"
    inotifywait -r -e modify $DIR
  done
else
  set -e
  python -m unittest
fi