We have the same problem in Yast packages, we also run tests in `%install`...