Skip to content
Browse files

Un-refactored a variable whose absence caused an unexpected error in …

…one specific error check path.
  • Loading branch information...
1 parent 64ae133 commit c1a33781f9e1abf3ca154b1ea39507566bb4173a @aquaman committed Aug 22, 2011
Showing with 6 additions and 5 deletions.
  1. +6 −5 Sessions/bin/scan2.rb
View
11 Sessions/bin/scan2.rb
@@ -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)
@@ -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

0 comments on commit c1a3378

Please sign in to comment.
Something went wrong with that request. Please try again.