diff options
author | Petr Viktorin <pviktori@redhat.com> | 2013-06-03 15:04:58 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-03-13 15:52:18 +0100 |
commit | 05f612e58a4954162dcaa724585869819ca77672 (patch) | |
tree | 8dccfd72710db010599a01bdd514c332aa807bed /make-test | |
parent | 65bde3ecd7dc0b2d51fd7c3faf49edbe662151e2 (diff) | |
download | freeipa-05f612e58a4954162dcaa724585869819ca77672.tar.gz freeipa-05f612e58a4954162dcaa724585869819ca77672.tar.xz freeipa-05f612e58a4954162dcaa724585869819ca77672.zip |
Do not hardcode path to ipa-getkeytab in tests
Using the in-tree binary makes testing outside the source tree
impossible.
Use ipa-getkeytab from $PATH, and add the directory to $PATH when
running the in-tree tests.
Part of the work for https://fedorahosted.org/freeipa/ticket/3654
Reviewed-By: Martin Kosek <mkosek@redhat.com>
Diffstat (limited to 'make-test')
-rwxr-xr-x | make-test | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -29,6 +29,9 @@ cmd += sys.argv[1:] # This must be set so ipalib.api gets initialized property for tests: os.environ['IPA_UNIT_TEST_MODE'] = 'cli_test' +# Add in-tree client binaries to PATH +os.environ['PATH'] = './ipa-client:' + os.environ['PATH'] + if not path.isfile(nose): print 'ERROR: need %r' % nose sys.exit(100) |