diff --git a/Dockerfile.test.yml b/Dockerfile.test.yml index 79e6e7caa3..4b930db2c6 100644 --- a/Dockerfile.test.yml +++ b/Dockerfile.test.yml @@ -1,3 +1,3 @@ sut: build: . - command: brew test-bot + command: env USER=root brew test-bot diff --git a/Library/Homebrew/test/diagnostic_checks_spec.rb b/Library/Homebrew/test/diagnostic_checks_spec.rb index 3f1dbcd44a..76ce1222db 100644 --- a/Library/Homebrew/test/diagnostic_checks_spec.rb +++ b/Library/Homebrew/test/diagnostic_checks_spec.rb @@ -24,6 +24,7 @@ describe Homebrew::Diagnostic::Checks do end specify "#check_access_directories" do + skip "User is root so everything is writable." if Process.euid.zero? begin dirs = [ HOMEBREW_CACHE, diff --git a/Library/Homebrew/test/pathname_spec.rb b/Library/Homebrew/test/pathname_spec.rb index 5f846fde13..e1c6645bf9 100644 --- a/Library/Homebrew/test/pathname_spec.rb +++ b/Library/Homebrew/test/pathname_spec.rb @@ -118,6 +118,7 @@ describe Pathname do describe "#ensure_writable" do it "makes a file writable and restores permissions afterwards" do + skip "User is root so everything is writable." if Process.euid.zero? touch file chmod 0555, file expect(file).not_to be_writable