mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-05 20:47:55 +00:00
764e667e0a
The case gated only on rc==0, but prove exits 0 both when tests pass and when every test skips, so the case could report green having run nothing at all. That is not hypothetical: all three tests carry environment guards, and on the pull request run the harness discards a passing case's output, so there was no way to tell from the log whether anything had executed. Add check:output=~Files=3, which proves prove found all three files. It still tolerates a legitimate skip on a node without Kea, and it catches a packaging regression or a rename. A missing directory was already caught, since prove -r on a nonexistent path exits 2. The count has to be maintained by hand when tests are added here, which the README now says. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
9 lines
323 B
Plaintext
9 lines
323 B
Plaintext
start:integration_tests
|
|
description:Run the xCAT-test integration tests (xCAT-test/integration) against the installed management node
|
|
os:Linux
|
|
label:mn_only,ci_test,integration
|
|
cmd:prove -I/opt/xcat/lib/perl -I/opt/xcat/lib/perl/xCAT -r /opt/xcat/share/xcat/tools/autotest/integration
|
|
check:rc==0
|
|
check:output=~Files=3
|
|
end
|