From 1e2a50452b20a1e73e7e28edd44e000bb15556bb Mon Sep 17 00:00:00 2001
From: Remi Collet <fedora@famillecollet.com>
Date: Mon, 26 Sep 2016 10:10:16 +0200
Subject: glpi: missing init

---
 glpi-dev.spec | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/glpi-dev.spec b/glpi-dev.spec
index 71bb04f..708db29 100644
--- a/glpi-dev.spec
+++ b/glpi-dev.spec
@@ -291,9 +291,11 @@ done >%{name}.lang
 
 %check
 %if %{with_tests}
+RET=0
 
 : Running a PHP server
-php -S localhost:8088&
+sed -e 's/localhost/127.0.0.1/' -i tests/bootstrap.php
+%{_bindir}/php -S 127.0.0.1:8088 &>/dev/null &
 PHPPID=$!
 
 : Running a MariaDB server
-- 
cgit