File obs-server-2.10-0014-dist-Make-tests-respect-SBINDIR-configuration-parame.patch of Package obs-server

From 2f20214d9c5129772dcacb0b0c2b89dd9824706d Mon Sep 17 00:00:00 2001
From: Oleg Girko <ol@infoserver.lv>
Date: Thu, 14 Jul 2016 13:11:17 +0100
Subject: [PATCH] [dist] Make tests respect SBINDIR configuration parameter.

Signed-off-by: Oleg Girko <ol@infoserver.lv>
---
 dist/Makefile                 | 6 +++---
 dist/t/0030-installed-files.t | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dist/Makefile b/dist/Makefile
index ba2302a699..4b39bc1d12 100644
--- a/dist/Makefile
+++ b/dist/Makefile
@@ -104,12 +104,12 @@ install_tests_appliance:
 	  xargs sed -i -e 's|/srv/obs|$(OBS_BACKEND_DATA_DIR)|g'
 
 test_unit:
-	prove -v t/*.t
+	SBINDIR=$(SBINDIR) prove -v t/*.t
 
 test_system:
-	prove -v t/*.ts
+	SBINDIR=$(SBINDIR) prove -v t/*.ts
 
 test_appliance:
-	prove -v t/*.ta
+	SBINDIR=$(SBINDIR) prove -v t/*.ta
 
 .PHONY: test_unit test_system
diff --git a/dist/t/0030-installed-files.t b/dist/t/0030-installed-files.t
index 1681c0e685..5013a19231 100644
--- a/dist/t/0030-installed-files.t
+++ b/dist/t/0030-installed-files.t
@@ -9,8 +9,8 @@ export BASH_TAP_ROOT=$(dirname $0)
 plan tests 5
 for i in \
     $DESTDIR/etc/logrotate.d/obs-server\
-    $DESTDIR/usr/sbin/obs_admin\
-    $DESTDIR/usr/sbin/obs_serverstatus
+    $DESTDIR$SBINDIR/obs_admin\
+    $DESTDIR$SBINDIR/obs_serverstatus
 do
   [[ -e $i ]]
   is $? 0 "Checking $i"
@@ -18,8 +18,8 @@ do
 done
 
 for i in \
-    $DESTDIR/usr/sbin/rcobssrcserver\
-    $DESTDIR/usr/sbin/rcobsdodup
+    $DESTDIR$SBINDIR/rcobssrcserver\
+    $DESTDIR$SBINDIR/rcobsdodup
 do
   [[ -L $i ]]
   is $? 0 "Checking $i"
-- 
2.31.1