Skip to content

Commit 0db864e

Browse files
authored
Clean generated files before running tests (#159)
This fixes the dev environment issue @henribru ran into in #157 I was able to repro the issue by building once on an older rev and again on a newer rev.
1 parent b24a447 commit 0db864e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

run_test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ RED="\033[0;31m"
88
NC='\033[0m'
99
PROTOC=${PROTOC:=protoc}
1010

11+
# Clean out generated/ directory - except for .generated / __init__.py
12+
find generated -type f -not \( -name "*.expected" -or -name "__init__.py" \) -delete
13+
1114
(
1215
# Create virtualenv + Install requirements for mypy-protobuf
1316
if [[ -z $SKIP_CLEAN ]] || [[ ! -e $VENV ]]; then

0 commit comments

Comments
 (0)