Skip to content

Commit

Permalink
Un-refactored a variable whose absence caused an unexpected error in …
Browse files Browse the repository at this point in the history
…one specific error check path.
  • Loading branch information
aquaman committed Aug 23, 2011
1 parent 64ae133 commit c1a3378
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Sessions/bin/scan2.rb
Expand Up @@ -22,8 +22,8 @@
# This program is free software and is distributed under the same terms as the Ruby GPL.
# See LICENSE.txt in the 'doc' folder for more information.
#
# Last Updated:: 11 July 2011
# Version:: 2.2
# Last Updated:: 22 August 2011
# Version:: 2.3
# -----
@ScriptName = File.basename($0)

Expand Down Expand Up @@ -1058,15 +1058,16 @@ def parse_issues

# Parse the Session sheets:

@sheets.sort.each do |file_path|
file_name = File.basename( file_path )
@sheets.sort.each do | @file |
file_name = File.basename( @file )

if ( file_name !~ /^et-\w{2,3}-\d{6}-\w\.ses/ )
# if the filename isn't correct, skip the sheet and go to the next one
error("Unexpected session file name. If it's a session sheet, its name must be: \"ET-<tester initials>-" +
"<yymmdd>-<A, B, C, etc.>.SES\". If it's a TODO sheet, its name must be: \"ET-TODO-<priority number>-<title>.SES\"")

else

@file = file_path
# DTCV variables :
testers = []
datetime = 0
Expand Down

0 comments on commit c1a3378

Please sign in to comment.