From ded8a1956cfe68c84023f9127f796a5ddf1aef1b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 15 Oct 2026 02:00:06 +0500 Subject: t/i: migrate to test-harness --- test/integration/tst-basic-error.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/integration/tst-basic-error.sh (limited to 'test/integration/tst-basic-error.sh') diff --git a/test/integration/tst-basic-error.sh b/test/integration/tst-basic-error.sh new file mode 100644 index 0000000..8abc42e --- /dev/null +++ b/test/integration/tst-basic-error.sh @@ -0,0 +1,21 @@ +test_run() { + test_basic_setup + test_run_cgitize --verbose + test_basic_verify_commits \ + 'committing 1.txt' \ + 'committing 2.txt' + + # Add new commits + test_basic_make_commit + test_basic_make_commit + + rm -rf -- "$test_repo_dir" + + # Must fail to pick up new commits + test_run_cgitize --verbose || true + test_basic_verify_commits \ + 'committing 1.txt' \ + 'committing 2.txt' + + test_verify_error_header +} -- cgit v1.3