diff --git a/salut/test/Makefile.inc b/salut/test/Makefile.inc
index d7143089f430bcb22a89ac695ebeaa5a3c6b6f07..1b94403316a840eb987668513ab0d70730b2864d 100644
--- a/salut/test/Makefile.inc
+++ b/salut/test/Makefile.inc
@@ -35,7 +35,7 @@ LIB=-package algo
 OCAMLOPT=ocamlfind ocamlopt -bin-annot
 
 
-ROOTDIR=$(shell git rev-parse --show-toplevel || echo "../..")
+ROOTDIR=$(shell git rev-parse --show-toplevel || echo $(CI_PROJECT_DIR))
 LIB_LUS=$(ROOTDIR)/test/lustre/round.lus $(ROOTDIR)/salut/lib/sas.lus
 RUN_KIND2=$(ROOTDIR)/salut/test/run-kind2.sh