Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[antlir2][tests] make booted wait-for-default test more resilient
Summary: Check for `default.target` instead of the entire system so that this test tests what it claimed to be testing in the first place. Other units may have been started, leading systemd to tell us that the system is `activating` even if `default.target` has been reached, but the test api contract is explicitly that `default.target` has been reached, not that there are zero still-activating units. Test Plan: ``` ❯ buck2 test fbcode//antlir/antlir2/testing/tests:test-sh-booted-requires-units-nobody -- --run-disabled --stress-runs=100 Buck UI: https://www.internalfb.com/buck2/0d29277c-4f7e-4194-9928-8edf01c3bf21 Test UI: https://www.internalfb.com/intern/testinfra/testrun/13792273897835638 Network: Up: 0B Down: 0B Discovered 0. Pass 55. Fail 0. Fatal 0. Skip 0. Timeout 0 Jobs completed: 202. Time elapsed: 16.7s. Tests finished: Pass 100. Fail 0. Fatal 0. Skip 0. Build failure 0 ``` Reviewed By: epilatow Differential Revision: D59012739 fbshipit-source-id: 6e4cf670da4b0560491d658c1aab0b4139dc83a7
- Loading branch information