summaryrefslogtreecommitdiff
path: root/test/TEST-48-START-STOP-NO-RELOAD
Commit message (Collapse)AuthorAgeFilesLines
* tests: add spdx headers to scripts and MakefilesZbigniew Jędrzejewski-Szmek2021-10-181-0/+1
|
* test: "detect" the test number automagicallyFrantisek Sumsal2021-04-261-1/+1
| | | | | | Specifying the test number manually is tedious and prone to errors (as recently proven). Since we have all the necessary data to work out the test number, let's do it automagically.
* test: make the test entrypoint scripts shellcheck-compliantFrantisek Sumsal2021-04-201-1/+4
|
* core: store timestamps of unit load attemptsLuca Boccassi2020-06-301-0/+0
| | | | | | | | | | | | | | | | | | | When the system is under heavy load, it can happen that the unit cache is refreshed for an unrelated reason (in the test I simulate this by attempting to start a non-existing unit). The new unit is found and accounted for in the cache, but it's ignored since we are loading something else. When we actually look for it, by attempting to start it, the cache is up to date so no refresh happens, and starting fails although we have it loaded in the cache. When the unit state is set to UNIT_NOT_FOUND, mark the timestamp in u->fragment_loadtime. Then when attempting to load again we can check both if the cache itself needs a refresh, OR if it was refreshed AFTER the last failed attempt that resulted in the state being UNIT_NOT_FOUND. Update the test so that this issue reproduces more often.
* test: temporarily block test 48 on Ubuntu's autopkgtestLuca Boccassi2020-06-021-0/+0
| | | | | | This test runs fine locally (both on Qemu and nspawn) but sporadically fails on autopkgtest for some reason. Disable it while the issue is investigated to reduce noise.
* core: reload cache if it's dirty when starting a UNIT_NOT_FOUND unitLuca Boccassi2020-05-302-0/+9
The time-based cache allows starting a new unit without an expensive daemon-reload, unless there was already a reference to it because of a dependency or ordering from another unit. If the cache is out of date, check again if we can load the fragment.