Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
added contest mode
Commit Description:
added contest mode
def filter_filename_for_testrun ( testrun , filename_list , raw_prefix = '' )
l = []
regex = Regexp . new ( "^( #{ Regexp . escape ( raw_prefix ) }#{ testrun } [a-z]*| #{ testrun } -.*)$" )
filename_list . each do | filename |
if regex . match ( filename )
l << filename
end
end
l
end
def build_testrun_info ( num_testruns , input_filename_list , raw_prefix = '' )
info = []
num_testcases = 0
num_testruns . times do | i |
r = i + 1
testrun_info = []
filenames = filter_filename_for_testrun ( r , input_filename_list , raw_prefix )
filenames . each do | fname |
num_testcases += 1
testrun_info << [ num_testcases , fname ]
end
info << testrun_info
end
info
end
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings