summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2017-03-31 13:45:04 -0700
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-04-01 09:42:45 +0200
commit6ea5014cbbebc1fe58fabfbb1243ff05dac12a55 (patch)
tree7184e8ebfa36addcf757ccbf4949f1f75139e47a
parentbf1b0662ae463400de33119e3020e420c788766d (diff)
downloadgnutls-6ea5014cbbebc1fe58fabfbb1243ff05dac12a55.tar.gz
tests: Copy template out of ${srcdir}
Otherwise, out of tree builds will fail to copy the template. Signed-off-by: Matt Turner <mattst88@gmail.com>
-rwxr-xr-xtests/cert-tests/krb5-test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cert-tests/krb5-test b/tests/cert-tests/krb5-test
index 3ada1f9b4e..a331acbb4f 100755
--- a/tests/cert-tests/krb5-test
+++ b/tests/cert-tests/krb5-test
@@ -60,7 +60,7 @@ if test "${rc}" != "0"; then
fi
# Negative tests. Check against values which may cause problems
-cp templates/template-krb5name.tmpl ${TMPLFILE}
+cp "${srcdir}/templates/template-krb5name.tmpl" ${TMPLFILE}
echo "krb5_principal = 'xxxxxxxxxxxxxx'" >>${TMPLFILE}
datefudge -s "2007-04-22" \
@@ -77,7 +77,7 @@ if test "${rc}" != "1"; then
exit ${rc}
fi
-cp templates/template-krb5name.tmpl ${TMPLFILE}
+cp "${srcdir}/templates/template-krb5name.tmpl" ${TMPLFILE}
echo "krb5_principal = 'comp1/comp2/comp3/comp4/comp5/comp6/comp7/comp8/comp9/comp10@REALM.COM'" >>${TMPLFILE}
datefudge -s "2007-04-22" \