Skip to content

Commit

Permalink
Merge pull request #422 from llxia/test1
Browse files Browse the repository at this point in the history
Add podman system prune for dev.external
  • Loading branch information
renfeiw authored Mar 20, 2023
2 parents 98baffc + 74a5506 commit 79db2ff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions testEnv.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
# limitations under the License.
##############################################################################

_TESTTARGET = $(firstword $(MAKECMDGOALS))
TESTTARGET = $(patsubst _%,%,$(_TESTTARGET))

testEnvSetup:

testEnvTeardown:
Expand All @@ -27,5 +30,14 @@ testEnvTeardown:
RESERVED_OPTIONS += -XX:+UseJITServer
endif

ifneq (,$(findstring dev.external,$(TESTTARGET)))
testEnvSetup:
sudo podman system prune --all --force

testEnvTeardown:
sudo podman system prune --all --force

endif

export TR_silentEnv=1
export TR_enableBreakOnDFSet=1

0 comments on commit 79db2ff

Please sign in to comment.