Frantisek Sumsal
7980c6316a
test: sync the "foobaz" namespace as well
...
Otherwise we might be too fast, resulting in failed namespace check
later:
[ 7.351453] testsuite-44.sh[401]: + journalctl --list-namespaces
[ 7.351784] testsuite-44.sh[402]: + grep foobar
[ 7.358851] testsuite-44.sh[402]: foobar
[ 7.359598] testsuite-44.sh[403]: + journalctl --list-namespaces
[ 7.359974] testsuite-44.sh[404]: + grep foobaz
[ 7.369882] systemd[1]: testsuite-44.service: Failed with result 'exit-code'.
Follow-up for 68f66a1713 .
2024-01-07 05:27:14 +09:00
Frantisek Sumsal
68f66a1713
journalctl: implement --list-namespaces
...
Apart from being useful on its own, this will be used in the following
commit for shell completions.
2024-01-05 19:21:51 +01:00
Frantisek Sumsal
07268394d6
test: unify /testok & /failed handling
...
And drop it where not necessary.
2023-07-12 16:03:40 +02:00
Zbigniew Jędrzejewski-Szmek
128db0aa00
test: drop uses of "&& { echo 'unexpected success'; exit 1; }"
...
Brief is sweet.
2023-04-24 21:58:35 +02:00
Zbigniew Jędrzejewski-Szmek
7b3cec95db
tests: add spdx headers to scripts and Makefiles
2021-10-18 09:04:45 +02:00
Luca Boccassi
cf9844ffab
test: use systemd-run --wait in TEST-44-LOG-NAMESPACE
...
The test appears to be occasionally failing. It uses systemd-run to echo
'hello world' into a namespaced journal and then uses journalctl to look for it,
but it doesn't wait.
In the failed runs it can't find it, but the automated journal dump shows
the message at the end.
Use --wait to avoid races.
2021-04-15 08:16:19 +02:00
Frantisek Sumsal
084575ff91
test: use set -eux and set -o pipefail everywhere
...
This should make the scripts more robust.
2021-04-13 12:08:01 +02:00
Zbigniew Jędrzejewski-Szmek
f49467b959
TEST-44: fix test
...
We were grepping for 'hello world', and in the namespace we would
match on 'hello world', and outside, on 'echo "hello world"'. When
the condition check was fixed, the test gave a false positive.
2021-04-08 20:21:50 +02:00
Zbigniew Jędrzejewski-Szmek
0ee994836c
TEST-*: use spacing before redirection operator, but not after
...
<< EOF → <<EOF
> foo < bar → >foo <bar
2021-04-08 20:21:50 +02:00
Zbigniew Jędrzejewski-Szmek
07d16f438a
test: move TEST-44-* to static files
2020-03-28 11:46:48 +01:00