Browse Source

CI: make clean -> remove coverage data (#2259)

mmetc 2 years ago
parent
commit
7673a20467
2 changed files with 2 additions and 1 deletions
  1. 1 0
      test/bats.mk
  2. 1 1
      test/bats/30_machines_tls.bats

+ 1 - 0
test/bats.mk

@@ -82,6 +82,7 @@ bats-clean:
 	@$(RM) $(LOCAL_INIT_DIR) $(WIN_IGNORE_ERR)
 	@$(RM) $(TEST_DIR)/dyn-bats/*.bats $(WIN_IGNORE_ERR)
 	@$(RM) test/.environment.sh $(WIN_IGNORE_ERR)
+	@$(RM) test/coverage/* $(WIN_IGNORE_ERR)
 
 # Run the test suite
 bats-test: bats-environment bats-check-requirements

+ 1 - 1
test/bats/30_machines_tls.bats

@@ -48,7 +48,7 @@ setup_file() {
     # remove all machines
 
     for machine in $(cscli machines list -o json | jq -r '.[].machineId'); do
-        cscli machines delete "${machine}"
+        cscli machines delete "${machine}" >/dev/null 2>&1
     done
 
     config_disable_agent