Fixed tests in container

This commit is contained in:
Kevin Veen-Birkenbach
2025-12-07 21:52:04 +01:00
parent 9679478353
commit 8e80dc5fd7
4 changed files with 8 additions and 3 deletions

View File

@@ -28,3 +28,4 @@ Thumbs.db
# Arch pkg artifacts
*.pkg.tar.*
*.log
package-manager-*

1
.gitignore vendored
View File

@@ -31,3 +31,4 @@ Thumbs.db
# Ignore logs
*.log
package-manager-*

View File

@@ -45,8 +45,11 @@ test: build
pacman -U --noconfirm /src/package-manager-*.pkg.tar.*; \
echo "Run tests inside Nix devShell..."; \
git config --global --add safe.directory /src && \
cd /src && \
nix develop .#default --no-write-lock-file -c \
python3 -m unittest discover -s tests -p \"test_*.py\" \
python3 -m unittest discover \
-s /src/tests \
-p "test_*.py" \
'
install: