| changeset 597 | 6cbcec19079b |
| 596:f36260133ed9 | 597:6cbcec19079b |
|---|---|
1 #!/bin/bash |
|
2 |
|
3 pushd `dirname $0` > /dev/null |
|
4 SCRIPTPATH=`pwd -P` |
|
5 popd > /dev/null |
|
6 |
|
7 ROOTPATH=$(readlink -m "$SCRIPTPATH/../../../..") |
|
8 TMPFILE=`mktemp` |
|
9 |
|
10 pushd "$ROOTPATH" > /dev/null |
|
11 |
|
12 nohup bin/django testserver --noinput --addrport=0.0.0.0:8001 initial_data roles_generic test_suite > $TMPFILE 2>&1 & |
|
13 echo "$!|$TMPFILE" > /tmp/testserver.pid |
|
14 |
|
15 cat /tmp/testserver.pid |
|
16 |
|
17 popd > /dev/null |