Improved kitchen tests output
Change-Id: I9bcfc0fe9af865512075ec2c971cd98f1388eadd
diff --git a/test-salt-formulas-pipeline.groovy b/test-salt-formulas-pipeline.groovy
index 1d88c9a..630a2a7 100644
--- a/test-salt-formulas-pipeline.groovy
+++ b/test-salt-formulas-pipeline.groovy
@@ -87,7 +87,7 @@
def kitchenInit = kitchenConfigYML["install"]
def kitchenInstalled = false
if(kitchenInit && !kitchenInit.isEmpty()){
- for(int i=0;i<kitchenInit.size();i++){
+ for(int i=0; i<kitchenInit.size(); i++){
if(kitchenInit[i].trim().startsWith("test -e Gemfile")){ //found Gemfile config
common.infoMsg("Custom Gemfile configuration found, using them")
ruby.installKitchen(kitchenInit[i].trim())
@@ -106,8 +106,8 @@
wrap([$class: 'AnsiColorBuildWrapper']) {
filteredEnvs = ruby.filterKitchenEnvs(kitchenEnvs).unique()
if(kitchenEnvs && !kitchenEnvs.isEmpty() && !filteredEnvs.isEmpty()){
- for(int i=0;i<filteredEnvs.size();i++){
- common.infoMsg("Found multiple environment, kitchen running with env: " + filteredEnvs[i])
+ for(int i=0; i<filteredEnvs.size(); i++){
+ common.infoMsg("Found " + filteredEnvs.size() + " environment, kitchen running with env: " + filteredEnvs[i])
ruby.runKitchenTests(filteredEnvs[i], KITCHEN_TESTS_PARALLEL.toBoolean())
}
}else{