view test/runtests.sh @ 293:6aa721e7b10b

Try to improve build sequence
author Windel Bouwman
date Thu, 28 Nov 2013 20:39:37 +0100
parents 1c7c1e619be8
children 9417caea2eb3
line wrap: on
line source

#!/usr/bin/env bash

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

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