mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
provide better errors on docker_run tests
This commit is contained in:
parent
20dae26925
commit
f6aa71d0ed
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue