Merge pull request #1611 from MikeMcQuaid/bash-test-race
bash_test: handle race condition.
This commit is contained in:
commit
52691cd0de
@ -2,6 +2,7 @@ require "testing_env"
|
|||||||
|
|
||||||
class BashTests < Homebrew::TestCase
|
class BashTests < Homebrew::TestCase
|
||||||
def assert_valid_bash_syntax(file)
|
def assert_valid_bash_syntax(file)
|
||||||
|
return unless file.exist?
|
||||||
output = Utils.popen_read("/bin/bash -n #{file} 2>&1")
|
output = Utils.popen_read("/bin/bash -n #{file} 2>&1")
|
||||||
assert $?.success?, output
|
assert $?.success?, output
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user