Skip to content
Snippets Groups Projects
Commit bd35843a authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

MNT: Set a PYFEEDS_TESTING env var when calling test scripts

parent 54517591
No related branches found
No related tags found
1 merge request!37MNT: Set a `PYFEEDS_TESTING` environment variable so `feedsRun` scripts can determine whether they are being called by `pyfeeds`, or by other means.
......@@ -450,6 +450,11 @@ def runTests(pyf):
env = os.environ.copy()
env['PYTHONPATH'] = op.pathsep.join([thisDir, env.get('PYTHONPATH', '')])
# set PYFEEDS_TESTING=1 in case test scripts
# want to know whether they are being executed
# by pyfeeds or via some other mechanism.
env['PYFEEDS_TESTING'] = '1'
# For each test we store a dictionary containing
# the results of running the test. Each result
# dict contains:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment