aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMike McQuaid2016-12-03 16:36:37 +0000
committerGitHub2016-12-03 16:36:37 +0000
commit52691cd0de6c18906e5fe7f290c0b4deda64973a (patch)
tree425ffb17f4870485d475c736aa6d2d4507b3fcab /Library/Homebrew/test
parent35d2610ee16b3620227bfbc8028816cd1af79256 (diff)
parent3f6d31dee1ab2ef84185899caca1011cb0b54345 (diff)
downloadbrew-52691cd0de6c18906e5fe7f290c0b4deda64973a.tar.bz2
Merge pull request #1611 from MikeMcQuaid/bash-test-race
bash_test: handle race condition.
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/bash_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/test/bash_test.rb b/Library/Homebrew/test/bash_test.rb
index ff418c787..671ab5ec8 100644
--- a/Library/Homebrew/test/bash_test.rb
+++ b/Library/Homebrew/test/bash_test.rb
@@ -2,6 +2,7 @@ require "testing_env"
class BashTests < Homebrew::TestCase
def assert_valid_bash_syntax(file)
+ return unless file.exist?
output = Utils.popen_read("/bin/bash -n #{file} 2>&1")
assert $?.success?, output
end