mirror of
https://github.com/containers/podman.git
synced 2025-06-23 10:38:20 +08:00
Merge pull request #19388 from edsantiago/quadlet_specifier_race
System tests: quadlet: fix race in %T test
This commit is contained in:
@ -794,10 +794,11 @@ Description=Get the value of percent T
|
|||||||
ExecStart=/bin/bash -c "echo --==%T==--"
|
ExecStart=/bin/bash -c "echo --==%T==--"
|
||||||
EOF
|
EOF
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl start $service
|
systemctl --wait start $service
|
||||||
echo "$_LOG_PROMPT journalctl -u $service"
|
echo "$_LOG_PROMPT journalctl -u $service"
|
||||||
run journalctl -u $service
|
run journalctl -u $service
|
||||||
echo "$output"
|
echo "$output"
|
||||||
|
assert "$output" =~ " --==.*==--" "get-percent-T unit ran to completion"
|
||||||
percent_t=$(expr "$output" : ".* --==\(.*\)==--")
|
percent_t=$(expr "$output" : ".* --==\(.*\)==--")
|
||||||
# Clean up. Don't bother to systemctl-reload, service_setup does that below.
|
# Clean up. Don't bother to systemctl-reload, service_setup does that below.
|
||||||
rm -f $unitfile
|
rm -f $unitfile
|
||||||
|
Reference in New Issue
Block a user