Skip to content

Commit 0e749b2

Browse files
author
Adrian Ho
committed
attr: fix test
`attr -s` reads stdin, so the original test would just timeout.
1 parent bd6394b commit 0e749b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Formula/a/attr.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def install
2828

2929
test do
3030
(testpath/"test.txt").write("Hello World!\n")
31-
system bin/"attr", "-s", "name", "test.txt"
31+
pipe_output "#{bin}/attr -s name test.txt", ""
3232
assert_match 'Attribute "name" has a 0 byte value for test.txt',
3333
shell_output(bin/"attr -l test.txt")
3434
end

0 commit comments

Comments
 (0)