fix system tests

- use s3 mirror instead of internet download
- reduce download verbosity
- do not use venv in docker-system-tests
- be more verbose on test output
- do not run golangci-lint in system-tests
This commit is contained in:
André Roth
2024-04-10 19:41:38 +02:00
parent 6be4f5e8d0
commit 9deb031c44
61 changed files with 646 additions and 1183 deletions
+4 -8
View File
@@ -1,16 +1,12 @@
#!/bin/sh
# cleanup
rm -rf /app/tmp
rm -rf /tmp/aptly*
rm -rf /home/test/.*
rm -rf /home/test/aptly-fixture-*
usermod -u `stat -c %u /app` aptly
chown -R `stat -c %u /app` /var/lib/aptly
mkdir -p /home/runner
# use same /home/runner dir as in github workflow
chown -R `stat -c %u /app` /home/runner
su - aptly -c "cd /app; python3 -m venv system/env"
su - aptly -c "cd /app; go mod tidy; HOME=/home/runner make system-test"
rm -rf system/env
su - aptly -c "cd /app; export HOME=/home/runner; go mod tidy; make docker-test TEST=$@"