provide better errors on docker_run tests

This commit is contained in:
Dominik Richter 2015-10-19 10:21:05 +02:00
parent 20dae26925
commit f6aa71d0ed

View file

@ -9,6 +9,11 @@ class DockerRunner
def initialize(conf_path = nil)
@conf_path = conf_path ||
ENV['config']
if @conf_path.nil?
fail "You must provide a configuration file with docker boxes"
end
unless File.file?(@conf_path)
fail "Can't find configuration in #{@conf_path}"
end