percona-toolkit: fix test

This commit is contained in:
ilovezfs 2017-04-12 06:03:18 -07:00
parent e5d6188d86
commit fdcb7b0004

View file

@ -38,6 +38,8 @@ class PerconaToolkit < Formula
end
test do
system bin/"pt-fingerprint --query \"select 1\""
input = "SELECT name, password FROM user WHERE id='12823';"
output = pipe_output("#{bin}/pt-fingerprint", input, 0)
assert_equal "select name, password from user where id=?;", output.chomp
end
end