Scrapy, a fast high-level web crawling & scraping framework for Python.
added bin/runtests.sh script to run tests
Pablo Hoffman6220609718bc
diff --git a/scrapy/trunk/bin/runtests.sh b/scrapy/trunk/bin/runtests.shnew file mode 100755index 000000000..20a73c45d--- /dev/null+++ b/scrapy/trunk/bin/runtests.sh@@ -0,0 +1,18 @@+#!/bin/sh++# look for twisted trial command in common known locations+if [ -x /usr/bin/trial ]; then+ trial="/usr/bin/trial"+elif [ -x /usr/lib64/twisted/bin/trial ]; then+ trial="/usr/lib64/twisted/bin/trial"+fi++# disable custom settings for running tests in a neutral environment+export SCRAPY_SETTINGS_DISABLED=1++if [ $# -eq 0 ]; then+ $trial scrapy+else+ $trial "$@"+fi+