Permalink
Browse files

Calculate # of remote slaves properly

  • Loading branch information...
1 parent d935de0 commit 743dee497e8b74b160195281db088da309f6fcd9 @lukemelia lukemelia committed Jan 11, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/testjour/commands/run.rb
@@ -75,8 +75,7 @@ def start_remote_slaves
Rsync.copy_from_current_directory_to(configuration.external_rsync_uri)
end
configuration.remote_slaves.each do |remote_slave|
- @started_slaves += 1
- start_remote_slave(remote_slave)
+ @started_slaves += start_remote_slave(remote_slave)
end
end
end
@@ -91,6 +90,7 @@ def start_remote_slave(remote_slave)
cmd = remote_slave_run_command(uri.user, uri.host, uri.path, num_workers)
Testjour.logger.info "Starting remote slave: #{cmd}"
detached_exec(cmd)
+ num_workers
end
def remote_slave_run_command(user, host, path, max_remote_slaves)

0 comments on commit 743dee4

Please sign in to comment.