From f12932cf3176ffea5f4004984a390e8dc929ebbf Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 30 May 2016 21:44:35 +0100 Subject: [PATCH] test_integration_cmds: fix when not a developer. --- Library/Homebrew/test/test_integration_cmds.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index 601e511c28..df71258d66 100644 --- a/Library/Homebrew/test/test_integration_cmds.rb +++ b/Library/Homebrew/test/test_integration_cmds.rb @@ -152,8 +152,10 @@ class IntegrationCommandTests < Homebrew::TestCase cmd("help", "cat")) # Internal command (documented, Ruby). assert_match(/^brew update /, cmd("help", "update")) # Internal command (documented, Shell). - assert_match "Example usage:\n", - cmd("help", "test-bot") # Internal command (undocumented). + if ARGV.homebrew_developer? + assert_match "Example usage:\n", + cmd("help", "test-bot") # Internal developer command (undocumented). + end end def test_config