YUKI Hiroshi
null+****@clear*****
Tue Oct 7 18:49:30 JST 2014
YUKI Hiroshi 2014-10-07 18:49:30 +0900 (Tue, 07 Oct 2014) New Revision: f09514b1801ee9b2bab70adf250ae6a2c13e03b7 https://github.com/droonga/droonga-engine/commit/f09514b1801ee9b2bab70adf250ae6a2c13e03b7 Message: Don't run command tests if Serf is not installed globally. Modified files: test/command/run-test.rb Modified: test/command/run-test.rb (+11 -0) =================================================================== --- test/command/run-test.rb 2014-10-07 18:21:00 +0900 (84dcae0) +++ test/command/run-test.rb 2014-10-07 18:49:30 +0900 (7dd2eef) @@ -18,6 +18,17 @@ require "rbconfig" require "fileutils" +def system_serf_exist? + system("serf", "--help") +end + +unless system_serf_exist? + puts("Serf is not installed to your system.") + puts("Install Serf before running this test.") + puts("See: http://www.serfdom.io/") + exit(false) +end + def run(*command_line) return if system(*command_line) puts("failed to run: #{command_line.join(' ')}") -------------- next part -------------- HTML����������������������������...Download