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

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