2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-21 08:33:20 +00:00

test(xcat-core): a missing deb converter makes the arch test skip, not fail

genesis_base_deb_arch.t stopped with a die when debuild-xcat-genesis-base was
absent, because a checkout without the converter has no deb rename to measure.
The BATS file skipped there instead, and a skip reads green.

setup() now asserts the script is readable.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
This commit is contained in:
Daniel Hilst
2026-09-14 10:26:13 -03:00
parent 4b9572a0a3
commit 6f635541e4
+3 -1
View File
@@ -13,7 +13,9 @@ load 'helpers/shell_source'
setup()
{
SCRIPT="$(repo_path 'xCAT-genesis-builder/debuild-xcat-genesis-base')"
[ -r "$SCRIPT" ] || skip "$SCRIPT is required"
# Fail rather than skip: a checkout without the converter has no deb rename to measure,
# and a skip there covers nothing while reading green.
[ -r "$SCRIPT" ]
export SCRIPT
}