diff options
| author | Mike McQuaid | 2016-12-03 16:36:37 +0000 |
|---|---|---|
| committer | GitHub | 2016-12-03 16:36:37 +0000 |
| commit | 52691cd0de6c18906e5fe7f290c0b4deda64973a (patch) | |
| tree | 425ffb17f4870485d475c736aa6d2d4507b3fcab /Library/Homebrew | |
| parent | 35d2610ee16b3620227bfbc8028816cd1af79256 (diff) | |
| parent | 3f6d31dee1ab2ef84185899caca1011cb0b54345 (diff) | |
| download | brew-52691cd0de6c18906e5fe7f290c0b4deda64973a.tar.bz2 | |
Merge pull request #1611 from MikeMcQuaid/bash-test-race
bash_test: handle race condition.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/test/bash_test.rb | 1 |
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 |
