Skip to content

Commit

Permalink
add linux package test healthcheck (#622)
Browse files Browse the repository at this point in the history
* add package test healthchecks

Signed-off-by: Moritz Wiesinger <[email protected]>

* debugging

Signed-off-by: Moritz Wiesinger <[email protected]>

* add healthcheck command

Signed-off-by: Moritz Wiesinger <[email protected]>

* make systemctl healthcheck blocking

Signed-off-by: Moritz Wiesinger <[email protected]>

* fix rebase artifacts

Signed-off-by: Moritz Wiesinger <[email protected]>

* add back newline

Signed-off-by: Moritz Wiesinger <[email protected]>

* add back newline

Signed-off-by: Moritz Wiesinger <[email protected]>

* revert removal of workaround

Signed-off-by: Moritz Wiesinger <[email protected]>

* use predefined variable instead of direct exec, add comment

Signed-off-by: Moritz Wiesinger <[email protected]>

* fix command

Signed-off-by: Moritz Wiesinger <[email protected]>

---------

Signed-off-by: Moritz Wiesinger <[email protected]>
Co-authored-by: Pablo Baeyens <[email protected]>
  • Loading branch information
mowies and mx-psi authored Aug 28, 2024
1 parent 501a19f commit 2c0f59a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/package-tests/package-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ crun = [
]
EOF

echo
podman run --name "$container_name" -d "$image_name"

# ensure that the system is up and running by checking if systemctl is running
$container_exec systemctl is-system-running --quiet --wait
install_pkg "$container_name" "$PKG_PATH"

# ensure service has started and still running after 5 seconds
Expand Down

0 comments on commit 2c0f59a

Please sign in to comment.