Skip to content

Commit

Permalink
Clean ecs-agent coverprofile on make clean
Browse files Browse the repository at this point in the history
  • Loading branch information
amogh09 committed Apr 21, 2023
1 parent 2efa4d5 commit 1c0470d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ test-init:
go tool cover -func cover.out > coverprofile-init.out

test-ecs-agent:
cd ecs-agent && GO111MODULE=on ${GOTEST} ${VERBOSE} -tags unit -mod vendor -coverprofile ../cover-ecs-agent.out -timeout=120s ./... && cd ..
go tool cover -func cover-ecs-agent.out > coverprofile-ecs-agent.out
cd ecs-agent && GO111MODULE=on ${GOTEST} ${VERBOSE} -tags unit -mod vendor -coverprofile ../cover.out -timeout=120s ./... && cd ..
go tool cover -func cover.out > coverprofile-ecs-agent.out

test-silent:
cd agent && GO111MODULE=on ${GOTEST} -tags unit -mod vendor -coverprofile ../cover.out -timeout=120s ./... && cd ..
Expand Down Expand Up @@ -439,6 +439,7 @@ clean:
-rm -rf cover.out
-rm -rf coverprofile.out
-rm -rf coverprofile-init.out
-rm -rf coverprofile-ecs-agent.out
# ecs-init & rpm cleanup
-rm -f ecs-init.spec
-rm -f amazon-ecs-init.spec
Expand Down

0 comments on commit 1c0470d

Please sign in to comment.