Skip to content

Commit

Permalink
Makefile: Remove pycache artifacts after running gtest-parallel (#495)
Browse files Browse the repository at this point in the history
* gitignore: Add build_tools/pycache/ to gitignore (#486)

*.pyc artifacts from running gtest-parallel as part of `make check`
are created in this directory

* Makefile: Remove pycache artifacts after running gtest-parallel (#486)
  • Loading branch information
AmnonHanuhov authored and udi-speedb committed Dec 5, 2023
1 parent 8b7d587 commit 540c867
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ sst_dump
blob_dump
block_cache_trace_analyzer
tools/block_cache_analyzer/*.pyc
build_tools/*.pyc
build_tools/pycache/
column_aware_encoding_exp
util/build_version.cc
build_tools/VALGRIND_LOGS/
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ OUTPUT_DIR ?= /tmp
.PHONY: check_0 check_1
check_0: $(TESTS)
$(AM_V_GEN)./build_tools/gtest-parallel --output_dir=$(OUTPUT_DIR) --workers=$(J) --non_gtest_tests $(NON_PARALLEL_TESTS_LIST) $(PARALLEL_TESTS_LIST)
find ./build_tools | grep -E "(pycache|__pycache__|\.pyc$$)" | xargs rm -rf

check_1: $(TESTS)
$(AM_V_GEN)for t in $(TESTS); do \
Expand All @@ -970,6 +971,7 @@ valgrind-exclude-regexp = InlineSkipTest.ConcurrentInsert|TransactionStressTest.
.PHONY: valgrind_check_0 valgrind_check_1
valgrind_check_0: $(TESTS)
$(AM_V_GEN) $(VALGRIND_VER) $(VALGRIND_OPTS) ./build_tools/gtest-parallel --output_dir=$(OUTPUT_DIR) --workers=$(J) --non_gtest_tests $(NON_PARALLEL_TESTS_LIST) $(PARALLEL_TESTS_LIST)
find ./build_tools | grep -E "(pycache|__pycache__|\.pyc$$)" | xargs rm -rf

valgrind_check_1: $(TESTS)
$(AM_V_GEN)for t in $(filter-out %skiplist_test options_settable_test,$(TESTS)); do \
Expand Down

0 comments on commit 540c867

Please sign in to comment.