##// END OF EJS Templates
test_pr script prepares $PATH and $PYTHONPATH for the tests...
Thomas Kluyver -
Show More
@@ -103,6 +103,11 b' def run_tests(venv):'
103 103 check_call([py, 'setup.py', 'install'])
104 104 os.chdir(basedir)
105 105
106 # Environment variables:
107 orig_path = os.environ["PATH"]
108 os.environ["PATH"] = os.path.join(basedir, venv, 'bin') + ':' + os.environ["PATH"]
109 os.environ.pop("PYTHONPATH", None)
110
106 111 iptest = os.path.join(basedir, venv, 'bin', 'iptest')
107 112 if not os.path.exists(iptest):
108 113 iptest = os.path.join(basedir, venv, 'bin', 'iptest3')
@@ -112,6 +117,9 b' def run_tests(venv):'
112 117 return True, check_output([iptest], stderr=STDOUT).decode('utf-8')
113 118 except CalledProcessError as e:
114 119 return False, e.output.decode('utf-8')
120 finally:
121 # Restore $PATH
122 os.environ["PATH"] = orig_path
115 123
116 124 def markdown_format(pr, results_urls):
117 125 def format_result(py, passed, gist_url, missing_libraries):
General Comments 0
You need to be logged in to leave comments. Login now