Fix rabbitmq_post user check command

Fixed Ruby syntax error causing rabbitmq_post.rb to
fail.

Change-Id: Iaf9dfe1305da75ade57bf378ac447a4f4ca56d53
Closes-Bug: #1523554
This commit is contained in:
Matthew Mosesohn 2015-12-11 16:59:19 +04:00
parent 15d966e164
commit 1cddb9b2a0
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class RabbitMQPostTest < Test::Unit::TestCase
end
def test_rabbitmq_running_as_rabbitmq_user
cmd = 'ps haxo user,cmd | egrep -v "su |grep "| egrep "rabbitmq|beam|epmd" | egrep -v "^' RABBITMQ_USER '"'
cmd = "ps haxo user,cmd | egrep -v su | egrep \"rabbitmq|beam|epmd\" | egrep -v ^#{RABBITMQ_USER}"
assert TestCommon::Process.run_successful?(cmd), "'#{cmd}' returns processes not running as #{RABBITMQ_USER}'"
end