From 38d5af284706d0f51e1b9e7bdfd9fea3aa0fa5c1 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 17 Jan 2017 12:54:24 +0000 Subject: test suite: gitattributes: Start to test clone Signed-off-by: Ian Jackson --- tests/tests/gitattributes | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/tests/gitattributes b/tests/tests/gitattributes index 83fa610..682b459 100755 --- a/tests/tests/gitattributes +++ b/tests/tests/gitattributes @@ -149,7 +149,7 @@ t-dgit-warn-check () { LC_MESSAGES=C t-dgit "$@" 2>&1 |tee ../$err set +e - fgrep 'warning: source tree contains .gitattributes' ../$err + egrep 'warning: .* contains \.gitattributes' ../$err rc=$? set -e @@ -229,4 +229,15 @@ sfmt_setup 1.0-1 quilt sfmt_import norm sfmt_import absurd --force-import-gitapply-absurd +: ----- 'test clone (with "3.0 (quilt)")' ----- + +mv $origtar ${dscf%.dsc}.* $tmp/mirror/pool/main/ +t-archive-query sid + +t-dgit-warn-check 0 -cdgit.default.setup-gitattributes=false \ + clone $p sid $p.clone.broken +cd $p.clone.broken + +cd .. + #t-ok -- cgit v1.2.3