From ceb1afefc42ffaebd33dfdd0744710766ee8796b Mon Sep 17 00:00:00 2001 From: Aleksei Sviridkin Date: Mon, 5 Oct 2026 15:01:09 +0300 Subject: [PATCH] test(e2e): spell the find negation as -not in select-e2e_test The negated-assertion audit reads a continued line that starts with `!` as a bash statement, so the `! -type d` operand inside the find expression on the continuation line turned the unit lane red on main. `-not` is the same find predicate and is not a statement prefix. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin --- hack/select-e2e_test.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/select-e2e_test.bats b/hack/select-e2e_test.bats index 5184dc1db..11ddfaeb6 100644 --- a/hack/select-e2e_test.bats +++ b/hack/select-e2e_test.bats @@ -31,7 +31,7 @@ # expanded, but not which side is which, and reading a whole-tree diff off a trace # line is exactly the moment a test stops being worth having. full_suite_list() { - find hack/e2e-chainsaw -mindepth 2 \( ! -type d -o -name chainsaw-test.yaml -o -name chainsaw-test.yml \) \ + find hack/e2e-chainsaw -mindepth 2 \( -not -type d -o -name chainsaw-test.yaml -o -name chainsaw-test.yml \) \ | sed -nE 's,^hack/e2e-chainsaw/([^/]+)/(.*/)?(chainsaw-test|[0-9]+-[^/]*)\.ya?ml$,\1,p' \ | sort -u | paste -sd ' ' - }