From 39ed65a74536fd063791712fa7484271b55cd39c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Thu, 1 Mar 2018 10:00:38 -0500 Subject: [PATCH] loader: use NIT_TESTING_TESTSSH to ignore picnit packages when testing MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- src/loader.nit | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 1.7.9.5