#!/usr/bin/env bats -*- bats -*- # # test to make sure we use the correct podman pause process # load helpers load helpers.registry load helpers.sig-proxy function setup_file() { # We have to stop the background registry here. These tests kill the podman pause # process which means commands after that are in a new one and when the cleanup # later tries to stop the registry container it will be in the wrong ns and can fail. # https://github.com/containers/podman/pull/21563#issuecomment-1960047648 stop_registry } function _check_pause_process() { # do not mark this variable as local; our caller expects it pause_pid_file="$XDG_RUNTIME_DIR/libpod/tmp/pause.pid" test -e $pause_pid_file || die "Pause pid file $pause_pid_file missing" # do not mark this variable as local; our caller expects it pause_pid=$(<$pause_pid_file) test -d /proc/$pause_pid || die "Pause process $pause_pid (from $pause_pid_file) is not running" assert "$(