Cleanup from previous python test runs

This commit is contained in:
Jared Morrow 2012-12-04 09:54:35 -07:00
parent c8c5226aea
commit 725b8871ce

View File

@ -34,6 +34,12 @@ confirm() ->
pass.
prereqs() ->
%% Cleanup from previous test runs as it causes a
%% virtualenv caremad explosion if it already exists
lager:info("[PREREQ] Cleaning up python scratch directory"),
CleanupCMD = io_lib:format("rm -rf ~s", [?PYTHON_CHECKOUT]),
os:cmd(CleanupCMD),
%% Need python, yo
lager:info("[PREREQ] Checking for presence of python"),
?assertNot(length(os:cmd("which python")) =:= 0),