rkflashtool: fix encoding issue in test
Closes Homebrew/homebrew#44145. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
b99dbe137c
commit
7b923e86d2
1 changed files with 3 additions and 1 deletions
|
@ -33,6 +33,8 @@ class Rkflashtool < Formula
|
|||
test do
|
||||
(testpath/"input.file").write "ABCD"
|
||||
system bin/"rkcrc", "input.file", "output.file"
|
||||
assert_equal "ABCD\264\366\a\t", `cat output.file`
|
||||
result = shell_output("cat output.file")
|
||||
result.force_encoding("UTF-8") if result.respond_to?(:force_encoding)
|
||||
assert_equal "ABCD\264\366\a\t", result
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue