Skip to content

Commit

Permalink
Added comment for suppressing pytest warnings and better Rakefile err…
Browse files Browse the repository at this point in the history
…or messages.
  • Loading branch information
seriva committed Apr 7, 2020
1 parent 401a90d commit 344778f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/epicli/data/common/tests/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ require 'rspec/core/rake_task'

unless ENV['inventory']
print "ERROR: Inventory file must be specified by 'inventory' environment variable\n"
print " e.g.) rake inventory=./hosts user=operations keypath=./id_rsa spec:all\n"
print " e.g.) rake inventory=./hosts user=operations keypath=./id_rsa spec_output=./spec_output/ spec:all\n"
exit
end

unless ENV['user']
print "ERROR: Service user must be specified by 'user' environment variable\n"
print " e.g.) rake inventory=./hosts user=operations keypath=./id_rsa spec:all\n"
print " e.g.) rake inventory=./hosts user=operations keypath=./id_rsa spec_output=./spec_output/ spec:all\n"
exit
end

unless ENV['keypath']
print "ERROR: Private key path must be specified by 'keypath' environment variable\n"
print " e.g.) rake inventory=./hosts user=operations keypath=./id_rsa spec:all\n"
print " e.g.) rake inventory=./hosts user=operations keypath=./id_rsa spec_output=./spec_output/ spec:all\n"
exit
end

unless ENV['spec_output']
print "ERROR: Output path must be specified by 'spec_output' environment variable\n"
print " e.g.) rake inventory=./hosts user=operations keypath=./id_rsa spec:all\n"
print " e.g.) rake inventory=./hosts user=operations keypath=./id_rsa spec_output=./spec_output/ spec:all\n"
exit
end

Expand Down
1 change: 1 addition & 0 deletions core/src/epicli/tests/pytest.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[pytest]
junit_family = xunit1
; disable warnings since this will only complain about external Python modules we have no control over.
addopts = -p no:warnings

0 comments on commit 344778f

Please sign in to comment.