Skip to content

Commit cb6d706

Browse files
author
saville
committed
Debug commit
1 parent b936491 commit cb6d706

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ jobs:
3737
- name: Test with pytest
3838
# Create the ssh key file once for all testing
3939
run: |
40+
image=$(docker run -d -v /sys/fs/cgroup:/sys/fs/cgroup:rw --security-opt=seccomp=unconfined --tmpfs /run rockylinux:9.0 /usr/sbin/init)
41+
sleep 5
42+
docker logs $image
43+
docker rm $image
44+
exit 1
4045
ssh-keygen -t ecdsa -m PEM -N '' -f /tmp/buildrunner-test-id_rsa
4146
pytest -v -m "not serial" --numprocesses=auto --junitxml=test-reports/non-serial-test-results.xml
4247
pytest -v -m "serial" --junitxml=test-reports/serial-test-results.xml

buildrunner/docker/runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def start(
184184
command = "/usr/sbin/init"
185185
if systemd_v248:
186186
tmpfs["/run"] = ""
187+
print(f"Using systemd, volumes: {volumes}, tmpfs: {tmpfs}")
187188

188189
if volumes:
189190
for key, value in volumes.items():

tests/test_buildrunner_files.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ def _get_test_runs(
100100
) -> List[Tuple[str, str, Optional[List[str]], int]]:
101101
file_names = []
102102
for file_name in os.listdir(test_dir):
103+
if "systemd" not in file_name:
104+
continue
103105
if serial_tests:
104106
if file_name in serial_test_files:
105107
file_names.append(file_name)

0 commit comments

Comments
 (0)