rq/run_tests

13 lines
267 B
Plaintext
Raw Normal View History

2011-11-14 11:10:59 +00:00
#!/bin/sh
check_redis_running() {
redis-cli echo "just checking" > /dev/null
return $?
}
if check_redis_running; then
/usr/bin/env python -m unittest discover -v -s tests $@ 2>&1 | egrep -v '^test_'
else
echo "Redis not running." >&2
return 2
fi