mirror of
https://github.com/containers/podman.git
synced 2025-06-24 11:28:24 +08:00
Merge pull request #18517 from edsantiago/quadlet_timeout
system tests: timeoutize quadlet, systemd
This commit is contained in:
@ -52,7 +52,9 @@ function run_quadlet() {
|
|||||||
cp $sourcefile $quadlet_tmpdir/
|
cp $sourcefile $quadlet_tmpdir/
|
||||||
|
|
||||||
echo "$_LOG_PROMPT $QUADLET $_DASHUSER $UNIT_DIR"
|
echo "$_LOG_PROMPT $QUADLET $_DASHUSER $UNIT_DIR"
|
||||||
QUADLET_UNIT_DIRS="$quadlet_tmpdir" run $QUADLET $_DASHUSER $UNIT_DIR
|
QUADLET_UNIT_DIRS="$quadlet_tmpdir" run \
|
||||||
|
timeout --foreground -v --kill=10 $PODMAN_TIMEOUT \
|
||||||
|
$QUADLET $_DASHUSER $UNIT_DIR
|
||||||
echo "$output"
|
echo "$output"
|
||||||
assert $status -eq 0 "Failed to convert quadlet file: $sourcefile"
|
assert $status -eq 0 "Failed to convert quadlet file: $sourcefile"
|
||||||
is "$output" "" "quadlet should report no errors"
|
is "$output" "" "quadlet should report no errors"
|
||||||
|
@ -22,15 +22,15 @@ fi
|
|||||||
mkdir -p $UNIT_DIR
|
mkdir -p $UNIT_DIR
|
||||||
|
|
||||||
systemctl() {
|
systemctl() {
|
||||||
command systemctl $_DASHUSER "$@"
|
timeout --foreground -v --kill=10 $PODMAN_TIMEOUT systemctl $_DASHUSER "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
journalctl() {
|
journalctl() {
|
||||||
command journalctl $_DASHUSER "$@"
|
timeout --foreground -v --kill=10 $PODMAN_TIMEOUT journalctl $_DASHUSER "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
systemd-run() {
|
systemd-run() {
|
||||||
command systemd-run $_DASHUSER "$@";
|
timeout --foreground -v --kill=10 $PODMAN_TIMEOUT systemd-run $_DASHUSER "$@";
|
||||||
}
|
}
|
||||||
|
|
||||||
install_kube_template() {
|
install_kube_template() {
|
||||||
|
Reference in New Issue
Block a user