-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit test host sensitivity - rpmbuild - TW JeOS #2799
Comments
All faulty tests are from: rockstor.smart_manager.tests.test_task_scheduler
And all fail as there is no pre-existing (on host) /etc/cron.d/rockstortab
|
Looks like this was my doing... feel stupid for not thinking of mocking that :-\ |
@FroggyFlox No worries on that front. I was actually going to look at your more recent (and our first) proper file mocking in testing to fix this as it goes. Given we are now on new-enough Python. I think it was a more recent addition, from memory. Maybe this was it: #2718 |
Work-aroundTo probe for any other outlier unit tests: After
We have, on the same 'clean' system:
@FroggyFlox from the above these look to be the last of their kind (hopefully) and all within a single test. I'll not tend to these for now as I've got a significant backlog currently. But just wanted to issue this while I had the reproducer here. If anyone fancies looking at these failure they should be reproducible via the sensitive file's removal (the one that shouldn't yet exist on a clean system :) ). If this one takes any-ones fancy just assign yourself so we don't duplicate effort. |
When running rpmbuild for the first time on a 'clean' TW 20240205 host, we have 3 remaining tests that are 'sensitive' to prior host conditions.
The text was updated successfully, but these errors were encountered: