THRIFT-3177 Fails to run rake test

Patch: István Karaszi
This commit is contained in:
Roger Meier 2015-06-01 21:27:11 +02:00
parent 86a51e7eca
commit 401d399ed0

View File

@ -86,7 +86,7 @@ end
desc 'Run the compiler tests (requires full thrift checkout)' desc 'Run the compiler tests (requires full thrift checkout)'
task :test do task :test do
# ensure this is a full thrift checkout and not a tarball of the ruby libs # ensure this is a full thrift checkout and not a tarball of the ruby libs
cmd = 'head -1 ../../README 2>/dev/null | grep Thrift >/dev/null 2>/dev/null' cmd = 'head -1 ../../README.md 2>/dev/null | grep Thrift >/dev/null 2>/dev/null'
system(cmd) or fail "rake test requires a full thrift checkout" system(cmd) or fail "rake test requires a full thrift checkout"
sh 'make', '-C', File.dirname(__FILE__) + "/../../test/rb", "check" sh 'make', '-C', File.dirname(__FILE__) + "/../../test/rb", "check"
end end