mirror of https://github.com/peter4431/rq.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
267 B
Plaintext
13 lines
267 B
Plaintext
13 years ago
|
#!/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
|