Revert "allow to mark a test as "Not Run" with a specific return code (#8466)"

This reverts commit 299f3260b6d82f01755be25c14b1345c64e4ee80.
The commit is missing a file.
Merge topic 'skip-return-code' into next

235a1b55 Revert "allow to mark a test as "Not Run" with a specific return code (#8466)"