aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-07-27 22:10:34 -0600
committerMike McQuaid2016-07-29 21:21:02 -0600
commit0fd0ecd599b443d39bd07ef66a8e072cceeab6f3 (patch)
treec635a87b6a5e6e3c80e1c941e7e910b642e27afe /Library
parent1aded31fec4a98c2521bca685166f82a8d7d66c6 (diff)
downloadbrew-0fd0ecd599b443d39bd07ef66a8e072cceeab6f3.tar.bz2
os: don't assume Linux if testing generic OS.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/os.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/os.rb b/Library/Homebrew/os.rb
index 4500fbd1e..d7b4d8807 100644
--- a/Library/Homebrew/os.rb
+++ b/Library/Homebrew/os.rb
@@ -5,6 +5,7 @@ module OS
end
def self.linux?
+ return false if ENV["HOMEBREW_TEST_GENERIC_OS"]
RUBY_PLATFORM.to_s.downcase.include? "linux"
end