dev/modules/sysconfig/templates/start-testserver.sh.erb
author Yves-Marie Haussonne <ymh.work+github@gmail.com>
Thu, 08 May 2014 11:43:45 +0200
changeset 649 fcf5309284df
parent 648 c8b44a569549
permissions -rwxr-xr-x
Correct test of text to take into account the text tag order+ augment test timeout

#!/bin/bash


ROOTPATH="/srv/comt"
TMPFILE=`mktemp`

pushd "$ROOTPATH" > /dev/null

nohup bin/django testserver --settings=cm.settings_dev --noinput --addrport=0.0.0.0:<%= @testserver_port %> initial_data roles_generic test_suite > $TMPFILE 2>&1 &
echo "$!|$TMPFILE" > /tmp/testserver.pid

cat  /tmp/testserver.pid

popd > /dev/null