[LNT] r248469 - Don't generate .pyc files when running tests.
Kristof Beyls via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 24 00:28:20 PDT 2015
Author: kbeyls
Date: Thu Sep 24 02:28:19 2015
New Revision: 248469
URL: http://llvm.org/viewvc/llvm-project?rev=248469&view=rev
Log:
Don't generate .pyc files when running tests.
Modified:
lnt/trunk/tests/lit.cfg
Modified: lnt/trunk/tests/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/lit.cfg?rev=248469&r1=248468&r2=248469&view=diff
==============================================================================
--- lnt/trunk/tests/lit.cfg (original)
+++ lnt/trunk/tests/lit.cfg Thu Sep 24 02:28:19 2015
@@ -29,6 +29,8 @@ config.target_triple = None
src_root = os.path.join(config.test_source_root, '..')
config.environment['PYTHONPATH'] = src_root
+# Don't generate .pyc files when running tests.
+config.environment['PYTHONDONTWRITEBYTECODE'] = "1"
config.substitutions.append(('%src_root', src_root))
config.substitutions.append(('%{src_root}', src_root))
More information about the llvm-commits
mailing list