Merge pull request #6617 from xu-cheng/arm

brew tests: fix for ARM
This commit is contained in:
Mike McQuaid 2019-10-18 17:06:04 +01:00 committed by GitHub
commit e985986835
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 2 deletions

View File

@ -13,7 +13,15 @@ class FormulaInfo
# Looks up formula on disk and reads its info.
# Returns nil if formula is absent or if there was an error reading it.
def self.lookup(name)
json = Utils.popen_read(HOMEBREW_BREW_FILE, "info", "--json=v1", name)
json = Utils.popen_read(
RUBY_PATH,
"-W0",
"-I", $LOAD_PATH.join(File::PATH_SEPARATOR),
HOMEBREW_LIBRARY_PATH/"brew.rb",
"info",
"--json=v1",
name
)
return unless $CHILD_STATUS.success?

View File

@ -21,6 +21,7 @@ describe Hardware::CPU do
describe "::family" do
let(:cpu_families) {
[
:arm,
:arrandale,
:atom,
:broadwell,

View File

@ -0,0 +1 @@
testball_bottle-0.1.yosemite.bottle.tar.gz

View File

@ -0,0 +1 @@
testball_bottle-0.1.yosemite.bottle.tar.gz

View File

@ -0,0 +1 @@
testball_bottle-0.1.yosemite.bottle.tar.gz

View File

@ -1 +1 @@
/usr/local/Homebrew/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.yosemite.bottle.tar.gz
testball_bottle-0.1.yosemite.bottle.tar.gz