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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user