Skip to content

Commit 45fa4f2

Browse files
frozencemeterysimo5
authored andcommitted
Fix PATH handling bug in test suite
virtualenv relies on its executable being ahead of the system ones. For setting up the KDC, we don't have a preferencee - we just need the sbins to be available. Signed-off-by: Robbie Harwood <rharwood@redhat.com>
1 parent 1a08c31 commit 45fa4f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/magtests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def setup_kdc(testdir, wrapenv):
322322

323323
kdcenv = wrapenv.copy()
324324
kdcenv.update({
325-
'PATH': f'/sbin:/bin:/usr/sbin:/usr/bin:{wrapenv["PATH"]}',
325+
'PATH': f'{wrapenv["PATH"]}:/sbin:/bin:/usr/sbin:/usr/bin',
326326
'KRB5_CONFIG': krb5conf,
327327
'KRB5_KDC_PROFILE': kdcconf,
328328
'KRB5_TRACE': os.path.join(testdir, 'krbtrace.log'),

0 commit comments

Comments
 (0)