summaryrefslogtreecommitdiff
path: root/test/TEST-41-ONESHOT-RESTART
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
|
* test: de-duplicate test_setup() functionsZbigniew Jędrzejewski-Szmek2020-03-281-13/+0
| | | | Now we will run setup_nspawn_root() in some case where do don't need to.
* test: move TEST-41-ONESHOT-RESTART setup to static filesZbigniew Jędrzejewski-Szmek2020-03-282-63/+1
|
* treewide: more portable bash shebangsJörg Thalheim2020-03-052-2/+2
| | | | | | | | | | | | | | | | As in 2a5fcfae024ffc370bb780572279f45a1da3f946 and in 3e67e5c9928f8b1e1c5a63def88d53ed1fed12eb using /usr/bin/env allows bash to be looked up in PATH rather than being hard-coded. As with the previous changes the same arguments apply - distributions have scripts to rewrite shebangs on installation and they know what locations to rely on. - For tests/compilation we should rather rely on the user to have setup there PATH correctly. In particular this makes testing from git easier on NixOS where do not provide /bin/bash to improve compose-ability.
* test: use symlinks for MakefilesLennart Poettering2020-01-031-9/+1
| | | | | for some reason the newer tests used file copyies instead of symlinks. let's fix that.
* test: correct TEST-41 StartLimitBurst testDan Streetman2019-10-182-9/+21
| | | | | | | | | | | | | | | TEST-41 verifies that the StartLimitBurst property will correctly limit the number of unit restarts, but the test currently doesn't adjust the StartLimitIntervalSec which defaults to 10 seconds. On Ubuntu CI, running under un-accelerated qemu, it can take more than 10 seconds to perform all 3 restarts, which avoids the burst limit, and fails the test. Instead, specify a long StartLimitIntervalSec in the test, so we can be sure to correctly test StartLimitBurst even on slow testbeds. Fixes #13794.
* test: blacklist TEST-41 on Ubuntu CIDan Streetman2019-10-181-0/+4
| | | | | This test has been failing on Ubuntu CI since introduced, let's blacklist it until we can debug what's causing it to fail.
* Allow restart for oneshot unitsClaudio Zumbo2019-10-163-0/+74
Picked up from https://github.com/systemd/systemd/pull/7474 , so coauthored by @robermorales.