From f130a5a0ddc3ffd1a5d5ce00d0b650c2364ae482 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Mon, 3 Mar 2025 00:44:21 +0100 Subject: [PATCH] gitlab-ci: pytest: unlock 'nobody' account for su integration tests to work --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b1c0fa1..b71fa3c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,6 +31,7 @@ pytest: - 'echo "kupfer ALL = (ALL) NOPASSWD: ALL" > /etc/sudoers.d/kupfer_all' - useradd -m kupfer - chmod 777 . + - usermod --unlock --expiredate="" nobody script: - script -e -c 'su kupfer -s /bin/bash -c "INTEGRATION_TESTS_USE_GLOBAL_CONFIG=TRUE KUPFERBOOTSTRAP_WRAPPED=DOCKER ./pytest.sh --junit-xml=pytest-report.xml --cov-report=xml:coverage.xml integration_tests.py"' coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'