sh: flush stdout before executing the shell
Closes Homebrew/homebrew#48268. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
parent
026363e1ed
commit
861910b85f
@ -24,6 +24,7 @@ module Homebrew
|
||||
ignore our configuration.
|
||||
When done, type `exit'.
|
||||
EOS
|
||||
$stdout.flush
|
||||
exec ENV["SHELL"]
|
||||
end
|
||||
end
|
||||
|
||||
@ -284,6 +284,11 @@ class IntegrationCommandTests < Homebrew::TestCase
|
||||
(HOMEBREW_REPOSITORY/".git").unlink
|
||||
end
|
||||
|
||||
def test_sh
|
||||
assert_match "Your shell has been configured",
|
||||
cmd("sh", {"SHELL" => "/usr/bin/true"})
|
||||
end
|
||||
|
||||
def test_custom_command
|
||||
mktmpdir do |path|
|
||||
cmd = "int-test-#{rand}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user