git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
0921a32b966f4b10c6bb3569d1b6e5b33f41ccba blob 1018 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
# Helpers for t208* tests

# Parallel checkout tests need full control of the number of workers
unset GIT_TEST_CHECKOUT_WORKERS

set_checkout_config () {
	if test $# -ne 2
	then
		BUG "set_checkout_config() requires two arguments"
	fi &&

	test_config_global checkout.workers $1 &&
	test_config_global checkout.thresholdForParallelism $2
}

# Run "${@:2}" and check that $1 checkout workers were used
test_checkout_workers () {
	if test $# -lt 2
	then
		BUG "too few arguments to test_checkout_workers()"
	fi &&

	expected_workers=$1 &&
	shift &&

	rm -f trace &&
	GIT_TRACE2="$(pwd)/trace" "$@" 2>&8 &&

	workers=$(grep "child_start\[..*\] git checkout--worker" trace | wc -l) &&
	test $workers -eq $expected_workers &&
	rm -f trace
} 8>&2 2>&4

# Verify that both the working tree and the index were created correctly
verify_checkout () {
	git -C "$1" diff-index --quiet HEAD -- &&
	git -C "$1" diff-index --quiet --cached HEAD -- &&
	git -C "$1" status --porcelain >"$1".status &&
	test_must_be_empty "$1".status
}
debug log:

solving 0921a32b96 ...
found 0921a32b96 in https://public-inbox.org/git/f7c20e0b5bd7857b2303aab762f24c503e50030d.1619104091.git.matheus.bernardino@usp.br/
found 16ee18389b in https://public-inbox.org/git/cff50a467d7935be6789547233b2fa8276b36593.1619104091.git.matheus.bernardino@usp.br/
found 39fd36fdf6 in https://public-inbox.org/git/6379b8df6a59361dd44733e379880a11c6cd977c.1619104091.git.matheus.bernardino@usp.br/

applying [1/3] https://public-inbox.org/git/6379b8df6a59361dd44733e379880a11c6cd977c.1619104091.git.matheus.bernardino@usp.br/
diff --git a/t/lib-parallel-checkout.sh b/t/lib-parallel-checkout.sh
new file mode 100644
index 0000000000..39fd36fdf6


applying [2/3] https://public-inbox.org/git/cff50a467d7935be6789547233b2fa8276b36593.1619104091.git.matheus.bernardino@usp.br/
diff --git a/t/lib-parallel-checkout.sh b/t/lib-parallel-checkout.sh
index 39fd36fdf6..16ee18389b 100644


applying [3/3] https://public-inbox.org/git/f7c20e0b5bd7857b2303aab762f24c503e50030d.1619104091.git.matheus.bernardino@usp.br/
diff --git a/t/lib-parallel-checkout.sh b/t/lib-parallel-checkout.sh
index 16ee18389b..0921a32b96 100644

Checking patch t/lib-parallel-checkout.sh...
Applied patch t/lib-parallel-checkout.sh cleanly.
Checking patch t/lib-parallel-checkout.sh...
Applied patch t/lib-parallel-checkout.sh cleanly.
Checking patch t/lib-parallel-checkout.sh...
Applied patch t/lib-parallel-checkout.sh cleanly.

index at:
100644 0921a32b966f4b10c6bb3569d1b6e5b33f41ccba	t/lib-parallel-checkout.sh

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).