summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2021-09-08 15:12:04 -0400
committerChris Evich <cevich@redhat.com>2021-09-09 14:07:19 -0400
commit5fdd0431b7914b5c848cdb6e40e39fc9282de4fe (patch)
treeba457fc84ab4c872e6e5cc121760f4a2fe69880f
parent784e1ae137587ba7130eff315ebd6965e444da03 (diff)
downloadpodman-5fdd0431b7914b5c848cdb6e40e39fc9282de4fe.tar.gz
podman-5fdd0431b7914b5c848cdb6e40e39fc9282de4fe.tar.bz2
podman-5fdd0431b7914b5c848cdb6e40e39fc9282de4fe.zip
Cirrus: Run unit-tests rootless
Previously (for various reasons) the unittests were limited by the Makefile to root-only. However, experimentation via PR #11490 shows they will actually execute and pass when run as a regular user. Enable this for only the latest Fedora VMs, so as to only add one new task to the (already large) set. Signed-off-by: Chris Evich <cevich@redhat.com>
-rw-r--r--.cirrus.yml19
-rw-r--r--Makefile1
2 files changed, 14 insertions, 6 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 5087a00eb..7a9494b9c 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -144,24 +144,24 @@ build_task:
image_name: "${VM_IMAGE_NAME}" # from stdenvars
matrix: &platform_axis
# Ref: https://cirrus-ci.org/guide/writing-tasks/#matrix-modification
- - env: &stdenvars
+ - env: &stdenvars
DISTRO_NV: ${FEDORA_NAME}
# Not used here, is used in other tasks
VM_IMAGE_NAME: ${FEDORA_CACHE_IMAGE_NAME}
CTR_FQIN: ${FEDORA_CONTAINER_FQIN}
# ID for re-use of build output
_BUILD_CACHE_HANDLE: ${FEDORA_NAME}-build-${CIRRUS_BUILD_ID}
- - env:
+ - env: &priorfedora_envvars
DISTRO_NV: ${PRIOR_FEDORA_NAME}
VM_IMAGE_NAME: ${PRIOR_FEDORA_CACHE_IMAGE_NAME}
CTR_FQIN: ${PRIOR_FEDORA_CONTAINER_FQIN}
_BUILD_CACHE_HANDLE: ${PRIOR_FEDORA_NAME}-build-${CIRRUS_BUILD_ID}
- - env:
+ - env: &ubuntu_envvars
DISTRO_NV: ${UBUNTU_NAME}
VM_IMAGE_NAME: ${UBUNTU_CACHE_IMAGE_NAME}
CTR_FQIN: ${UBUNTU_CONTAINER_FQIN}
_BUILD_CACHE_HANDLE: ${UBUNTU_NAME}-build-${CIRRUS_BUILD_ID}
- - env:
+ - env: &priorubuntu_envvars
DISTRO_NV: ${PRIOR_UBUNTU_NAME}
VM_IMAGE_NAME: ${PRIOR_UBUNTU_CACHE_IMAGE_NAME}
CTR_FQIN: ${PRIOR_UBUNTU_CONTAINER_FQIN}
@@ -404,7 +404,16 @@ unit_test_task:
only_if: *not_docs
depends_on:
- validate
- matrix: *platform_axis
+ matrix:
+ - env: *stdenvars
+ - env: *priorfedora_envvars
+ - env: *ubuntu_envvars
+ - env: *priorubuntu_envvars
+ # Special-case: Rootless on latest Fedora (standard) VM
+ - name: "Rootless unit on $DISTRO_NV"
+ env:
+ <<: *stdenvars
+ PRIV_NAME: rootless
gce_instance: *standardvm
env:
TEST_FLAVOR: unit
diff --git a/Makefile b/Makefile
index 75b8a19db..cf796ed3c 100644
--- a/Makefile
+++ b/Makefile
@@ -492,7 +492,6 @@ run-docker-py-tests:
.PHONY: localunit
localunit: test/goecho/goecho
- hack/check_root.sh make localunit
rm -rf ${COVERAGE_PATH} && mkdir -p ${COVERAGE_PATH}
$(GOBIN)/ginkgo \
-r \