chiark / gitweb /
test-common: Set PYTHONBYTECODEBASE to /dev/null
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 24 Oct 2019 16:43:19 +0000 (17:43 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 24 Oct 2019 18:16:15 +0000 (19:16 +0100)
Python is not entirely reliable at figuring out when its .pyc files
are out of date, especially if you do something like
  git-rebase -i --exec 'make check-mtest' <commitish>

So squash the bytecode cache entirely.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test-common.make.in

index 2f3c2485e411c1760751041bc121953c4df2636e..82798299c25b1f0bd6b045524711469025e51017 100644 (file)
@@ -11,6 +11,8 @@ DEPS += Makefile
 
 TARGETS += check
 
+export PYTHONBYTECODEBASE=/dev/null
+
 all: $(TARGETS)
 
 check-real: $(foreach t,$(TESTNAMES),d-$t/ok)