mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 04:31:21 -03:30
invoke redis in a way that works on centos and ubuntu
This commit is contained in:
parent
456f460ed9
commit
b0f55c832d
@ -59,7 +59,7 @@ class QueueTestMixin(object):
|
||||
# Centos 6.5 redis is runnable by non-root user but is not in a normal users path by default
|
||||
env = dict(os.environ)
|
||||
env['PATH'] = '%s:/usr/sbin/' % env['PATH']
|
||||
self.redis_process = Popen('redis-server --port 16379 > /dev/null',
|
||||
self.redis_process = Popen('echo "port 16379" | redis-server - > /dev/null',
|
||||
shell=True, executable='/bin/bash',
|
||||
env=env)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user