mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-17 05:31:16 +08:00
* test(e2e): run rootless podman on ubuntu host Signed-off-by: Evan Lezar <elezar@nvidia.com> * test(e2e): probe rootless capability behavior Signed-off-by: Evan Lezar <elezar@nvidia.com> * test(e2e): make capability probe observational Signed-off-by: Evan Lezar <elezar@nvidia.com> --------- Signed-off-by: Evan Lezar <elezar@nvidia.com>
20 lines
700 B
Bash
Executable File
20 lines
700 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Run the Podman e2e suite and verify rootless mode.
|
|
#
|
|
# Identical to e2e-podman.sh but fails fast if Podman is not running
|
|
# rootless. Use this to explicitly validate the rootless networking
|
|
# path (pasta, host-gateway, bind address).
|
|
|
|
set -euo pipefail
|
|
|
|
rootless="$(podman info --format '{{.Host.Security.Rootless}}' 2>/dev/null || true)"
|
|
if [ "${rootless}" != "true" ]; then
|
|
echo "ERROR: podman is not running rootless; expected true, got '${rootless:-<empty>}'" >&2
|
|
exit 2
|
|
fi
|
|
|
|
exec "$(dirname "${BASH_SOURCE[0]}")/e2e-podman.sh"
|