From d52acd008b3ffc592d7b6a2aaf97f181a6a23a81 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 8 Dec 2014 12:52:52 -0500 Subject: Use different env vars bases for gssapi tests Restrict what environment variables are available by default. gssapienv in particular should not bleed in KRB5_KTNAME. --- proxy/tests/runtests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proxy/tests/runtests.py b/proxy/tests/runtests.py index 7cceb2f..38f692c 100755 --- a/proxy/tests/runtests.py +++ b/proxy/tests/runtests.py @@ -263,7 +263,8 @@ def setup_gssapi_env(testdir, wrapenv): def run_interposetest(testdir, env): testlog = os.path.join(testdir, 'tests.log') - ienv = {"KRB5CCNAME": os.path.join(testdir, 'interpose_ccache')} + ienv = {"KRB5CCNAME": os.path.join(testdir, 'interpose_ccache'), + "KRB5_KTNAME": os.path.join(testdir, SVC_KTNAME)} ienv.update(env) usr_keytab = os.path.join(testdir, USR_KTNAME) with (open(testlog, 'a')) as logfile: @@ -393,7 +394,7 @@ if __name__ == '__main__': keysenv = setup_keys(testdir, kdcenv) - gssapienv = setup_gssapi_env(testdir, keysenv) + gssapienv = setup_gssapi_env(testdir, kdcenv) run_interposetest(testdir, gssapienv) -- cgit