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.
|
ignore our configuration.
|
||||||
When done, type `exit'.
|
When done, type `exit'.
|
||||||
EOS
|
EOS
|
||||||
|
$stdout.flush
|
||||||
exec ENV["SHELL"]
|
exec ENV["SHELL"]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -284,6 +284,11 @@ class IntegrationCommandTests < Homebrew::TestCase
|
|||||||
(HOMEBREW_REPOSITORY/".git").unlink
|
(HOMEBREW_REPOSITORY/".git").unlink
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_sh
|
||||||
|
assert_match "Your shell has been configured",
|
||||||
|
cmd("sh", {"SHELL" => "/usr/bin/true"})
|
||||||
|
end
|
||||||
|
|
||||||
def test_custom_command
|
def test_custom_command
|
||||||
mktmpdir do |path|
|
mktmpdir do |path|
|
||||||
cmd = "int-test-#{rand}"
|
cmd = "int-test-#{rand}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user