Skip to content

Commit

Permalink
Debug commit
Browse files Browse the repository at this point in the history
  • Loading branch information
saville committed Nov 12, 2024
1 parent b936491 commit cb6d706
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ jobs:
- name: Test with pytest
# Create the ssh key file once for all testing
run: |
image=$(docker run -d -v /sys/fs/cgroup:/sys/fs/cgroup:rw --security-opt=seccomp=unconfined --tmpfs /run rockylinux:9.0 /usr/sbin/init)
sleep 5
docker logs $image
docker rm $image
exit 1
ssh-keygen -t ecdsa -m PEM -N '' -f /tmp/buildrunner-test-id_rsa
pytest -v -m "not serial" --numprocesses=auto --junitxml=test-reports/non-serial-test-results.xml
pytest -v -m "serial" --junitxml=test-reports/serial-test-results.xml
Expand Down
1 change: 1 addition & 0 deletions buildrunner/docker/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def start(
command = "/usr/sbin/init"
if systemd_v248:
tmpfs["/run"] = ""
print(f"Using systemd, volumes: {volumes}, tmpfs: {tmpfs}")

if volumes:
for key, value in volumes.items():
Expand Down
2 changes: 2 additions & 0 deletions tests/test_buildrunner_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def _get_test_runs(
) -> List[Tuple[str, str, Optional[List[str]], int]]:
file_names = []
for file_name in os.listdir(test_dir):
if "systemd" not in file_name:
continue
if serial_tests:
if file_name in serial_test_files:
file_names.append(file_name)
Expand Down

0 comments on commit cb6d706

Please sign in to comment.