Skip to content
Snippets Groups Projects
Commit 52691cd0 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1611 from MikeMcQuaid/bash-test-race

bash_test: handle race condition.
parents 35d2610e 3f6d31de
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment