mirror of https://github.com/scrapy/scrapy.git
added bin/runtests.sh script to run tests
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40816
This commit is contained in:
parent
20a61caa2c
commit
6220609718
|
|
@ -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
|
||||
|
||||
Loading…
Reference in New Issue