lib/grntest/tester.rb in grntest-1.3.3 vs lib/grntest/tester.rb in grntest-1.3.4
- old
+ new
@@ -418,10 +418,17 @@
def plugins_directory
groonga_path = Pathname(@groonga)
unless groonga_path.absolute?
groonga_path = Pathname(resolve_command_path(@groonga)).expand_path
end
- groonga_path.parent.parent + "plugins"
+ base_dir = groonga_path.parent.parent
+ installed_plugins_dir = base_dir + "lib" + "groonga" + "plugins"
+ build_plugins_dir = base_dir + "plugins"
+ if installed_plugins_dir.exist?
+ installed_plugins_dir
+ else
+ build_plugins_dir
+ end
end
private
def load_tests(*targets)
default_group_name = "."