git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 4/8] t7900: factor out inheritance test dependency

From
Kristoffer Haugsbakk <code@khaugsbakk.name>
Date
Oct 14, 2023, 21:45 UTC
Message-ID
<a4491ff0411be82179a2f40c36ce427a5d7c39f6.1697319294.git.code@khaugsbakk.name>
In-Reply-To
<cover.1697319294.git.code@khaugsbakk.name>

Factor out the dependency that test `maintenance.strategy inheritance` has on test `--schedule inheritance weekly -> daily -> hourly`.

Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
---
 t/t7900-maintenance.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/t/t7900-maintenance.sh b/t/t7900-maintenance.sh
index 4bfb4ec5cf6..6e3ee365ccd 100755
--- a/t/t7900-maintenance.sh
+++ b/t/t7900-maintenance.sh
@@ -408,14 +408,16 @@ test_expect_success 'invalid --schedule value' '
 	test_i18ngrep "unrecognized --schedule" err
 '
 
-test_expect_success '--schedule inheritance weekly -> daily -> hourly' '
+test_expect_success 'setup for inheritance' '
 	git config maintenance.loose-objects.enabled true &&
 	git config maintenance.loose-objects.schedule hourly &&
 	git config maintenance.commit-graph.enabled true &&
 	git config maintenance.commit-graph.schedule daily &&
 	git config maintenance.incremental-repack.enabled true &&
-	git config maintenance.incremental-repack.schedule weekly &&
+	git config maintenance.incremental-repack.schedule weekly
+'
 
+test_expect_success '--schedule inheritance weekly -> daily -> hourly' '
 	GIT_TRACE2_EVENT="$(pwd)/hourly.txt" \
 		git maintenance run --schedule=hourly 2>/dev/null &&
 	test_subcommand git prune-packed --quiet <hourly.txt &&
-- 
2.42.0.2.g879ad04204
Previous: Kristoffer HaugsbakkNext: Kristoffer Haugsbakk
Message 7 of 16 in “t7900: untangle test dependencies”
  1. 0/8 t7900: untangle test dependenciesKristoffer Haugsbakk, Oct 14, 2023
  2. 1/8 t7900: remove register dependencyKristoffer Haugsbakk, Oct 14, 2023
  3. 2/8 t7900: setup and tear down clonesKristoffer Haugsbakk, Oct 14, 2023
  4. Junio C HamanoOct 17, 2023
  5. Kristoffer HaugsbakkOct 17, 2023
  6. 3/8 t7900: create commit so that branch is bornKristoffer Haugsbakk, Oct 14, 2023
  7. 4/8 t7900: factor out inheritance test dependencyKristoffer Haugsbakk, Oct 14, 2023
  8. 5/8 t7900: factor out common schedule setupKristoffer Haugsbakk, Oct 14, 2023
  9. 6/8 t7900: fix `pfx` dependencyKristoffer Haugsbakk, Oct 14, 2023
  10. 7/8 t7900: fix `print-args` dependencyKristoffer Haugsbakk, Oct 14, 2023
  11. 8/8 t7900: factor out packfile dependencyKristoffer Haugsbakk, Oct 14, 2023
  12. 9/8 t7900: fix register dependencyKristoffer Haugsbakk, Oct 14, 2023
  13. Jeff KingOct 15, 2023
  14. Junio C HamanoOct 17, 2023
  15. Kristoffer HaugsbakkOct 17, 2023
  16. Junio C HamanoOct 17, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.