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:45:31 +0200
commit15b10cf3e1b0ddde20dc835e4f0056f49772c41f (patch)
tree15f3b9ad19ba3d27c8d1e2f38546aaa32cf2fb12
parent40518eb5fdb2f7f2716e98b8d9f39529d3996fc0 (diff)
downloadgnutls-15b10cf3e1b0ddde20dc835e4f0056f49772c41f.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" \