diff options
| author | Greg Hudson <ghudson@mit.edu> | 2013-09-28 14:56:22 -0400 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2013-09-28 14:57:18 -0400 |
| commit | 1f1b76ab8937c2cb0273cc5d8a7ee806240e1879 (patch) | |
| tree | 879d363dcb4b36abf40639f8eaff1a4cb96ffc31 /src/tests | |
| parent | d7b94742daae85329067b126d0a4bc5b2ea7e4a0 (diff) | |
| download | krb5-1f1b76ab8937c2cb0273cc5d8a7ee806240e1879.tar.gz krb5-1f1b76ab8937c2cb0273cc5d8a7ee806240e1879.tar.xz krb5-1f1b76ab8937c2cb0273cc5d8a7ee806240e1879.zip | |
Add "which" function to k5test
Add a utility function in k5test.py to look for a command in the
executable path, and remove it from t_kdb.py.
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/t_kdb.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/tests/t_kdb.py b/src/tests/t_kdb.py index 70fe58a84..64ce682cc 100644 --- a/src/tests/t_kdb.py +++ b/src/tests/t_kdb.py @@ -2,15 +2,6 @@ from k5test import * import time -# Return the location of progname in tht executable path, or None if -# it is not found. -def which(progname): - for dir in os.environ["PATH"].split(os.pathsep): - path = os.path.join(dir, progname) - if os.access(path, os.X_OK): - return path - return None - # Run kdbtest against the BDB module. realm = K5Realm(create_kdb=False) realm.run(['./kdbtest']) |
