mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 02:47:36 -02:30
invoke redis in a way that works on centos and ubuntu
This commit is contained in:
@@ -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
|
# 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 = dict(os.environ)
|
||||||
env['PATH'] = '%s:/usr/sbin/' % env['PATH']
|
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',
|
shell=True, executable='/bin/bash',
|
||||||
env=env)
|
env=env)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user