Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use Ruby API rather than backticks to get system info

  • Loading branch information...
commit a36bde117b04885116ebbeeb96b86b6857bb1c84 1 parent 8f4e9a8
Bryan Helmkamp authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/testjour/commands/run.rb
3  lib/testjour/commands/run.rb
View
@@ -1,5 +1,6 @@
require "optparse"
require "socket"
+require "etc"
require "testjour/commands/command"
require "testjour/http_queue"
@@ -118,7 +119,7 @@ def local_run_command
end
def testjour_uri
- user = `whoami`.strip
+ user = Etc.getpwuid.name
host = Testjour.socket_hostname
"http://#{user}@#{host}" + File.expand_path(".")
end
Please sign in to comment.
Something went wrong with that request. Please try again.