Skip to content

Commit

Permalink
[rb] make it easier in ruby remote tests to specify a grid jar
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Oct 5, 2023
1 parent c64ed7d commit 2e5cec5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def remote_server?
end

def remote_server_jar
jar = 'java/src/org/openqa/selenium/grid/selenium_server_deploy.jar'
jar = 'selenium_server_deploy.jar'
test_jar = Pathname.new(Dir.pwd).join(jar)
built_jar = root.join("bazel-bin/#{jar}")
built_jar = root.join("bazel-bin/java/src/org/openqa/selenium/grid/#{jar}")
jar = if File.exist?(test_jar) && ENV['DOWNLOAD_SERVER'].nil?
test_jar
elsif File.exist?(built_jar) && ENV['DOWNLOAD_SERVER'].nil?
Expand Down

0 comments on commit 2e5cec5

Please sign in to comment.