diff --git a/pavelib/prereqs.py b/pavelib/prereqs.py index 57e97245bf..764c7e9038 100644 --- a/pavelib/prereqs.py +++ b/pavelib/prereqs.py @@ -300,3 +300,10 @@ def install_prereqs(): install_node_prereqs() install_python_prereqs() + log_installed_python_prereqs() + + +def log_installed_python_prereqs(): + """ Logs output of pip freeze for debugging. """ + sh("pip freeze > {}".format(Env.GEN_LOG_DIR + "/pip_freeze.log")) + return diff --git a/pavelib/utils/envs.py b/pavelib/utils/envs.py index 9a16d98679..26ef3de820 100644 --- a/pavelib/utils/envs.py +++ b/pavelib/utils/envs.py @@ -22,12 +22,15 @@ class Env(object): REPORT_DIR = REPO_ROOT / 'reports' METRICS_DIR = REPORT_DIR / 'metrics' + # Generic log dir + GEN_LOG_DIR = REPO_ROOT / "test_root" / "log" + # Python unittest dirs PYTHON_COVERAGERC = REPO_ROOT / ".coveragerc" # Bok_choy dirs BOK_CHOY_DIR = REPO_ROOT / "common" / "test" / "acceptance" - BOK_CHOY_LOG_DIR = REPO_ROOT / "test_root" / "log" + BOK_CHOY_LOG_DIR = GEN_LOG_DIR BOK_CHOY_REPORT_DIR = REPORT_DIR / "bok_choy" BOK_CHOY_A11Y_REPORT_DIR = REPORT_DIR / "a11y" BOK_CHOY_COVERAGERC = BOK_CHOY_DIR / ".coveragerc"