mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +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==--"
|
||||
EOF
|
||||
systemctl daemon-reload
|
||||
systemctl start $service
|
||||
systemctl --wait start $service
|
||||
echo "$_LOG_PROMPT journalctl -u $service"
|
||||
run journalctl -u $service
|
||||
echo "$output"
|
||||
assert "$output" =~ " --==.*==--" "get-percent-T unit ran to completion"
|
||||
percent_t=$(expr "$output" : ".* --==\(.*\)==--")
|
||||
# Clean up. Don't bother to systemctl-reload, service_setup does that below.
|
||||
rm -f $unitfile
|
||||
|
Reference in New Issue
Block a user