From 3d9918f14d82e2eae2fa12b1979d8a9726c99dad Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 7 Oct 2021 13:02:25 +0200 Subject: [PATCH] tests: enable colors in git config Force colors in git config so we can test that we don't get color codes in our last commit. ref https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10042 --- tests/abuild.bats | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/abuild.bats b/tests/abuild.bats index 058b6b7..1784e12 100644 --- a/tests/abuild.bats +++ b/tests/abuild.bats @@ -8,8 +8,10 @@ setup() { export REPODEST="$tmpdir"/packages export CLEANUP="srcdir bldroot pkgdir deps" export WORKDIR="$tmpdir"/work + export GIT_CONFIG_GLOBAL="$tmpdir"/gitconfig mkdir -p "$tmpdir" "$WORKDIR" + printf "[color]\n\tui = always\n" > "$GIT_CONFIG_GLOBAL" } teardown() { @@ -176,3 +178,4 @@ teardown() { run grep -x py3.9:bar=1.0.0-r0 pkg/.control.py3-foo-and-bar/.py-provides run grep -x 'provides py3.9:bar=1.0.0-r0' pkg/.control.py3-foo-and-bar/.PKGINFO } +