summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-07-03 18:04:32 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-07-10 13:49:02 +0200
commitac17a5f82e9a48373d482f0b30b0e51213b76ae8 (patch)
treed7da0a2bf8abab043959a7ed3fb63265a0a9e409
parentf234434a6fa2118b10765cff2f75bbc3196fec39 (diff)
downloadjustbuild-ac17a5f82e9a48373d482f0b30b0e51213b76ae8.tar.gz
test: Extend cas-independent check with .gitignore file
-rw-r--r--test/end-to-end/just-mr/cas-independent.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/end-to-end/just-mr/cas-independent.sh b/test/end-to-end/just-mr/cas-independent.sh
index 1dceb01f..e1d44a53 100644
--- a/test/end-to-end/just-mr/cas-independent.sh
+++ b/test/end-to-end/just-mr/cas-independent.sh
@@ -23,6 +23,7 @@ readonly LBR="${TEST_TMPDIR}/local-build-root"
mkdir -p "${DISTDIR}"
mkdir -p foo/bar/baz
echo "test data" > foo/bar/baz/data.txt
+echo "/baz/" > foo/bar/.gitignore # add a .gitignore
tar cf "${DISTDIR}/foo-1.2.3.tar" foo 2>&1
foocontent=$(git hash-object "${DISTDIR}/foo-1.2.3.tar")
echo "Foo archive has content ${foocontent}"
@@ -32,7 +33,7 @@ cd foo
git init
git config user.name 'N.O.Body'
git config user.email 'nobody@example.org'
-git add .
+git add -f . # add everything, including any .gitignore
git commit -m 'Just care about the tree' 2>&1
tree_id=$(git log -n 1 --format='%T')
cd ..