tests: Add regression test for pushing failed builds
Description
#534 was added after caching of failed builds was added to track the lack of always pushing failed builds.
A coincidental change has since fixed this, so this patch adds a regression test to ensure it stays fixed.
Changes proposed in this merge request:
- Add regression test
This merge request, when approved, will close issue/bug: #534