Skip to content

Commit f944eef

Browse files
committed
test(hack): load the strict-mode helper in cilium-ipam-migration.bats
bats-strict-setup.bats requires every unit file to load test_helper so its tests run under set -u, and fails the whole bats lane on main because this file does not. Assisted-by: LLM Signed-off-by: Yan Bondarenko <[email protected]>
1 parent dc362fa commit f944eef

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎hack/cilium-ipam-migration.bats‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# no run/$status/$output, so each test calls init_state itself and every
1616
# negative assertion is an explicit `if ...; then ...; false; fi`.
1717

18+
load test_helper
19+
1820
SCRIPT="$(cd "$(dirname "${BATS_TEST_FILENAME:-$0}")/.." && pwd)/packages/system/cilium/files/ipam-migration.sh"
1921

2022
# init_state builds an isolated workspace with the fake kubectl first on PATH,

0 commit comments

Comments
 (0)