cloudstack/plugins/hypervisors/kvm
James Peru d80ed16723 test(backup): mock returns no-backing-chain for rsync-failure test
Phase 6 added a hasBackingChain() check before rsync that uses
qemu-img info to detect chained incrementals. The existing
testExecuteWithRsyncFailure test mocks Script.runSimpleBashScriptForExitValue
to return 0 for any command, so the new qemu-img info check
incorrectly evaluates as "has backing chain" and routes the test
through the chain-flatten path instead of rsync — the test then
asserts a failure that never occurs.

Add a clause to the mock that returns 1 (no backing chain) for the
qemu-img info backing-filename probe, so the test continues to
exercise the rsync path it was designed for.
2026-04-28 11:36:53 +03:00
..
src test(backup): mock returns no-backing-chain for rsync-failure test 2026-04-28 11:36:53 +03:00
pom.xml Merge remote-tracking branch 'apache/4.22' 2026-01-13 11:49:07 +05:30