Blame SOURCES/Fix-PATH-handling-bug-in-test-suite.patch

8f2224
From c26b1aafbb9679b19b630a46eeb35a9dee61a95f Mon Sep 17 00:00:00 2001
8f2224
From: Robbie Harwood <rharwood@redhat.com>
8f2224
Date: Tue, 13 Oct 2020 11:04:00 -0400
8f2224
Subject: [PATCH] Fix PATH handling bug in test suite
8f2224
8f2224
virtualenv relies on its executable being ahead of the system ones.  For
8f2224
setting up the KDC, we don't have a preferencee - we just need the sbins
8f2224
to be available.
8f2224
8f2224
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
8f2224
(cherry picked from commit ae07252e356d8142ddd3987c9c3686ba7ee593de)
8f2224
---
8f2224
 tests/magtests.py | 2 +-
8f2224
 1 file changed, 1 insertion(+), 1 deletion(-)
8f2224
8f2224
diff --git a/tests/magtests.py b/tests/magtests.py
8f2224
index e04fa65..082c6e4 100755
8f2224
--- a/tests/magtests.py
8f2224
+++ b/tests/magtests.py
8f2224
@@ -312,7 +312,7 @@ def setup_kdc(testdir, wrapenv):
8f2224
 
8f2224
     kdcenv = wrapenv.copy()
8f2224
     kdcenv.update({
8f2224
-        'PATH': f'/sbin:/bin:/usr/sbin:/usr/bin:{wrapenv["PATH"]}',
8f2224
+        'PATH': f'{wrapenv["PATH"]}:/sbin:/bin:/usr/sbin:/usr/bin',
8f2224
         'KRB5_CONFIG': krb5conf,
8f2224
         'KRB5_KDC_PROFILE': kdcconf,
8f2224
         'KRB5_TRACE': os.path.join(testdir, 'krbtrace.log'),