Files
cozystack/hack
IvanHunters e8034f813b fix(e2e): run flake-triage unit tests under cozytest.sh, not bats
The repo runs hack/*.bats through hack/cozytest.sh, a custom pure-shell runner
that implements no bats `run` builtin and no `$status`/`$output` variables
(each @test is a shell function under `set -eu -x`). The first draft used the
upstream bats API, so `make unit-tests` hit `run: command not found` and the
CI unit-tests job went red. Rewrite in the cozytest idiom used by the sibling
tests: `out=$(cmd)` (a failing cmd aborts under set -e = the exit-0 assertion),
plain `[ … ]`/`grep` assertions, `if cmd; then …; false; fi` for negation.
Verified green through `hack/cozytest.sh` directly. Also adds a parse test for
a classname-before-name testcase tag.

Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>
2026-07-28 00:20:31 +03:00
..
2026-02-17 22:54:12 +01:00