diff options
| author | 2012-01-12 17:26:28 +0100 | |
|---|---|---|
| committer | 2012-01-12 17:26:28 +0100 | |
| commit | 692d015627ecf03fbc23cfdb4afcf398b9a09a51 (patch) | |
| tree | 3a3b65808c37aecd4d270b3d40850ae52f33a355 /tests/run_pyload.sh | |
| parent | changed HEAD request (diff) | |
| download | pyload-692d015627ecf03fbc23cfdb4afcf398b9a09a51.tar.xz | |
scripts for testing and syntax unit test
Diffstat (limited to 'tests/run_pyload.sh')
| -rwxr-xr-x | tests/run_pyload.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/run_pyload.sh b/tests/run_pyload.sh new file mode 100755 index 000000000..66498cd10 --- /dev/null +++ b/tests/run_pyload.sh @@ -0,0 +1,17 @@ +#/usr/bin/env bash +cp tests/config/pyload.db.org tests/config/pyload.db +cp tests/config/pyload.conf.org tests/config/pyload.conf + +PYTHON=python +which python2 > /dev/null && PYTHON=python2 + +touch pyload.out +$PYTHON pyLoadCore.py -d --configdir=tests/config > pyload.out 2> pyload.err & + +for i in {1..30}; do + grep 8001 pyload.out > /dev/null && echo "pyLoad started" && break + sleep 1 +done + +echo "pyLoad start script finished" + |
