From 7f46d4ec3c93a1a7ac2a592db634a8c43f01cef2 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Sat, 1 Aug 2020 17:37:11 +0100 Subject: [PATCH] build, test: set Homebrew.args --- Library/Homebrew/build.rb | 3 +++ Library/Homebrew/test.rb | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb index 3031765e65..d0ec6dacf7 100644 --- a/Library/Homebrew/build.rb +++ b/Library/Homebrew/build.rb @@ -208,7 +208,10 @@ class Build end begin + Homebrew.args = Homebrew::CLI::Parser.new.parse(ARGV.dup.freeze, ignore_invalid_options: true) + args = Homebrew.install_args.parse + error_pipe = UNIXSocket.open(ENV["HOMEBREW_ERROR_PIPE"], &:recv_io) error_pipe.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) diff --git a/Library/Homebrew/test.rb b/Library/Homebrew/test.rb index 7167aabeb4..2936c20715 100644 --- a/Library/Homebrew/test.rb +++ b/Library/Homebrew/test.rb @@ -16,6 +16,8 @@ require "dev-cmd/test" TEST_TIMEOUT_SECONDS = 5 * 60 begin + Homebrew.args = Homebrew::CLI::Parser.new.parse(ARGV.dup.freeze, ignore_invalid_options: true) + args = Homebrew.test_args.parse error_pipe = UNIXSocket.open(ENV["HOMEBREW_ERROR_PIPE"], &:recv_io) error_pipe.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)