dev/modules/sysconfig/files/clean-testserver.sh
author Yves-Marie Haussonne <ymh.work+github@gmail.com>
Fri, 09 May 2014 18:34:46 +0200
changeset 655 cac6781d8b7f
parent 609 736fdedb7774
permissions -rwxr-xr-x
add the file settings_dev.py to be cleaned, set cache timeout to 0 (i.e. disable cache for tests)

#!/bin/bash

PID=$(cat /tmp/testserver.pid|cut -d"|" -f1)
OUTFILE=$(cat /tmp/testserver.pid|cut -d"|" -f2)

echo "Kill test server pid $PID"
kill $PID

echo "Test server log:"
echo "================================================================================"
cat "$OUTFILE"
echo "================================================================================"

echo "Clean testserver output"
rm "$OUTFILE"