@@ -23,7 +23,9 @@ module KGrader::Backend | |||||
print "svn: password: " | print "svn: password: " | ||||
@password = STDIN.noecho(&:gets).chomp | @password = STDIN.noecho(&:gets).chomp | ||||
puts | puts | ||||
puts "svn: bad password or other network issues" unless test_okay url | |||||
unless test_okay url | |||||
raise SVNError, "bad password or other network issues" | |||||
end | |||||
end | end | ||||
end | end | ||||
@@ -25,4 +25,10 @@ module KGrader | |||||
class SubmissionError < KGraderError | class SubmissionError < KGraderError | ||||
end | end | ||||
class BackendError < KGraderError | |||||
end | |||||
class SVNError < BackendError | |||||
end | |||||
end | end |
@@ -35,7 +35,9 @@ module KGrader | |||||
# ------------------------------------------------------------------------- | # ------------------------------------------------------------------------- | ||||
def courses | def courses | ||||
Dir[File.join spec_dir, '*', ''].map! { |fn| File.basename fn } | |||||
Dir[File.join spec_dir, '*', '_config.yml'].map! do |fn| | |||||
File.basename File.dirname fn | |||||
end | |||||
end | end | ||||
def assignments(courseid) | def assignments(courseid) | ||||