From 1731e5c0c110c7eda003838ce452670ada702303 Mon Sep 17 00:00:00 2001
From: Virgile Prevosto <virgile.prevosto@m4x.org>
Date: Thu, 25 Aug 2022 11:27:49 +0200
Subject: [PATCH] [Makefile] export WP cache-relates Makefile variables to
 commands

---
 share/Makefile.testing | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/share/Makefile.testing b/share/Makefile.testing
index 3569f03d45e..88224c388bc 100644
--- a/share/Makefile.testing
+++ b/share/Makefile.testing
@@ -47,6 +47,11 @@ else
 FRAMAC_WP_CACHEDIR?=
 endif
 
+ifeq ($(PTEST_USE_WP_CACHE),yes)
+# we need these variable to be present in the shell environment of the commands
+export FRAMAC_WP_CACHEDIR FRAMAC_WP_CACHE
+endif
+
 ############
 # Default values necessary for make -f <this-makefile>
 
-- 
GitLab