Browse Source

Fix a couple bugs.

master
Ben Kurtovic 8 years ago
parent
commit
18110c4d4c
2 changed files with 3 additions and 3 deletions
  1. +1
    -2
      lib/kgrader/backend/svn.rb
  2. +2
    -1
      lib/kgrader/runtime.rb

+ 1
- 2
lib/kgrader/backend/svn.rb View File

@@ -51,8 +51,7 @@ module KGrader::Backend
end

def commit(repo, message, paths = nil)
# TODO
# run 'commit', '-m', message, *paths.map { |fn| File.join repo, fn }
run 'commit', '-m', message, *paths.map { |fn| File.join repo, fn }
end

def commit_date(repo)


+ 2
- 1
lib/kgrader/runtime.rb View File

@@ -1,3 +1,4 @@
require 'fileutils'
require 'timeout'

module KGrader
@@ -5,7 +6,7 @@ module KGrader
MAX_COLS = 79

def testcase(options)
puts " running test: #{$0} ".center MAX_COLS, '='
puts " running test: #{File.basename $0} ".center MAX_COLS, '='
begin
Timeout::timeout options[:alarm] { yield }
rescue Timeout::Error


Loading…
Cancel
Save