mirror of
https://github.com/containers/podman.git
synced 2025-05-22 09:36:57 +08:00

The unit tests currently require running as root. This has caused some confusion that justifies adding a root check to `make localunit` and error out for non-root users instead of starting the tests deemed to fail. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
6 lines
114 B
Bash
Executable File
6 lines
114 B
Bash
Executable File
#!/bin/bash
|
|
if ! [ $(id -u) = 0 ]; then
|
|
echo "Please run as root! '$@' requires root privileges."
|
|
exit 1
|
|
fi
|