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

@ -10,12 +10,18 @@ record that choice.
--------------------------------------------------------------------------------
=end
@version_parms_file = "#{File.dirname(__FILE__)}/subscripts/_current_version.rb"
begin
require File.expand_path('subscripts/common', File.dirname(__FILE__))
rescue LoadError => e
puts e
end
@version_parms_file = "#{@home}/scripts/subscripts/_current_version.rb"
# Find out what versions we have available
def build_version_list()
@version_names = []
Dir.foreach("/home/jeb228/LoadTesting/versions") do |filename|
Dir.foreach("#{@home}/versions") do |filename|
@version_names.push(filename) unless (filename[0,1] == "_") || (filename[0,1] == ".")
end
@version_names.sort!