From: Alexis Laferrière Date: Thu, 1 Mar 2018 15:00:38 +0000 (-0500) Subject: loader: use NIT_TESTING_TESTSSH to ignore picnit packages when testing X-Git-Url: http://nitlanguage.org loader: use NIT_TESTING_TESTSSH to ignore picnit packages when testing Signed-off-by: Alexis Laferrière --- diff --git a/src/loader.nit b/src/loader.nit index 9563713..f18d7be 100644 --- a/src/loader.nit +++ b/src/loader.nit @@ -66,8 +66,10 @@ redef class ModelBuilder # Setup the paths value paths.append(toolcontext.opt_path.value) - # Packages managed by picnit - paths.add picnit_lib_dir + # Packages managed by picnit, only use when not testing with tests.sh + if "NIT_TESTING_TESTS_SH".environ != "true" then + paths.add picnit_lib_dir + end var path_env = "NIT_PATH".environ if not path_env.is_empty then