| author | ymh <ymh.work@gmail.com> |
| Wed, 12 Mar 2014 17:19:23 +0100 | |
| changeset 608 | 047aab3a53cf |
| parent 597 | 6cbcec19079b |
| permissions | -rwxr-xr-x |
#!/bin/bash pushd `dirname $0` > /dev/null SCRIPTPATH=`pwd -P` popd > /dev/null ROOTPATH=$(readlink -m "$SCRIPTPATH/../../../..") TMPFILE=`mktemp` pushd "$ROOTPATH" > /dev/null nohup bin/django testserver --noinput --addrport=0.0.0.0:8001 initial_data roles_generic test_suite > $TMPFILE 2>&1 & echo "$!|$TMPFILE" > /tmp/testserver.pid cat /tmp/testserver.pid popd > /dev/null