mirror of https://github.com/containers/podman.git
Move skipping systemd tests to early setup.
There is no meaning of performing setup/teardown for these tests when we even can not work with systemd. Signed-off-by: Danila Kiver <danila.kiver@mail.ru>
This commit is contained in:
parent
1f435bf92c
commit
8fde4194b6
|
|
@ -11,6 +11,9 @@ UNIT_DIR="$HOME/.config/systemd/user"
|
||||||
UNIT_FILE="$UNIT_DIR/$SERVICE_NAME.service"
|
UNIT_FILE="$UNIT_DIR/$SERVICE_NAME.service"
|
||||||
|
|
||||||
function setup() {
|
function setup() {
|
||||||
|
skip_if_not_systemd
|
||||||
|
skip_if_remote
|
||||||
|
|
||||||
basic_setup
|
basic_setup
|
||||||
|
|
||||||
if [ ! -d "$UNIT_DIR" ]; then
|
if [ ! -d "$UNIT_DIR" ]; then
|
||||||
|
|
@ -26,9 +29,6 @@ function teardown() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "podman generate - systemd - basic" {
|
@test "podman generate - systemd - basic" {
|
||||||
skip_if_not_systemd
|
|
||||||
skip_if_remote
|
|
||||||
|
|
||||||
run_podman create $IMAGE echo "I'm alive!"
|
run_podman create $IMAGE echo "I'm alive!"
|
||||||
cid="$output"
|
cid="$output"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue