diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-15 02:00:06 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-15 08:32:35 +0500 |
| commit | ded8a1956cfe68c84023f9127f796a5ddf1aef1b (patch) | |
| tree | 3313cb3ce0f99bd58b623b6283d95405c805ffec /test/integration/tst-basic-error.sh | |
| parent | v9.0.0 (diff) | |
| download | cgitize-ded8a1956cfe68c84023f9127f796a5ddf1aef1b.tar.gz cgitize-ded8a1956cfe68c84023f9127f796a5ddf1aef1b.zip | |
t/i: migrate to test-harness
Diffstat (limited to '')
| -rw-r--r-- | test/integration/tst-basic-error.sh | 21 |
1 files changed, 21 insertions, 0 deletions
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 +} |
