Update the LoadTesting framework.

Permit use of Git while still supporting Subversion. Improve the script structure and reduce dependence on hard-coded paths.
This commit is contained in:
j2blake 2013-10-21 15:21:54 -04:00
parent f382ec0468
commit 4f085bcdfe
20 changed files with 120 additions and 70 deletions

View file

@ -9,13 +9,12 @@ Use SVN to get the latest revisions to the currently-selected distro.
--------------------------------------------------------------------------------
=end
require "#{File.dirname(__FILE__)}/subscripts/loadParms"
require File.expand_path('subscripts/common', File.dirname(__FILE__))
Dir.chdir("/home/jeb228/LoadTesting/distros/#{@distro_name}/vitro") do |path|
system "svn update"
if (@is_git)
Dir.chdir(distro_file('Vitro')) { |path| system "git pull" }
Dir.chdir(distro_file('VIVO')) { |path| system "git pull" }
else
Dir.chdir(distro_file('vitro')) { |path| system "svn update" }
Dir.chdir(distro_file('vivo')) { |path| system "svn update" }
end
Dir.chdir("/home/jeb228/LoadTesting/distros/#{@distro_name}/vivo") do |path|
system "svn update"
end