Skip to content

Commit

Permalink
Add support for testing with installed Groonga
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 12, 2019
1 parent 1125a3d commit 7dae1d0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/grntest/tester.rb
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,14 @@ def plugins_directory
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
Expand Down

0 comments on commit 7dae1d0

Please sign in to comment.