From 344778fcaaffe02dc5741efdd032342ec5fc6271 Mon Sep 17 00:00:00 2001 From: Luuk van Venrooij Date: Tue, 7 Apr 2020 16:11:35 +0200 Subject: [PATCH] Added comment for suppressing pytest warnings and better Rakefile error messages. --- core/src/epicli/data/common/tests/Rakefile | 8 ++++---- core/src/epicli/tests/pytest.ini | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core/src/epicli/data/common/tests/Rakefile b/core/src/epicli/data/common/tests/Rakefile index 51e8781065..b307aa0a77 100644 --- a/core/src/epicli/data/common/tests/Rakefile +++ b/core/src/epicli/data/common/tests/Rakefile @@ -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 diff --git a/core/src/epicli/tests/pytest.ini b/core/src/epicli/tests/pytest.ini index 83116c7d2c..50d1b71088 100644 --- a/core/src/epicli/tests/pytest.ini +++ b/core/src/epicli/tests/pytest.ini @@ -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 \ No newline at end of file