Skip to content

Commit e091903

Browse files
Debug
1 parent 113df44 commit e091903

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Diff for: .github/workflows/tunasync.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,10 @@ jobs:
5959
go-version: '^1.22'
6060
id: go
6161

62-
- name: Run Unit tests.
63-
run: |
64-
go install github.com/wadey/gocovmerge@latest
65-
sudo systemd-run --service-type=oneshot --uid="$(id --user)" --pipe --wait \
66-
--property=Delegate=yes --setenv=USECURCGROUP=1 \
67-
--setenv=TERM=xterm-256color --same-dir \
68-
make test
69-
7062
- name: Run Additional Unit tests.
7163
run: |
7264
make build-test-worker
65+
readelf --dyn-syms -W worker.test
7366
sudo mkdir /sys/fs/cgroup/tunasync
7467
sudo ./worker.test -test.v=true -test.coverprofile profile2.cov -test.run TestCgroup
7568
sudo rmdir /sys/fs/cgroup/tunasync
@@ -195,6 +188,9 @@ jobs:
195188
lssubsys -am
196189
cgcreate -a "$CUSER" -t "$CUSER" -g cpu:tunasync
197190
cgcreate -a "$CUSER" -t "$CUSER" -g memory:tunasync
191+
ls -la /sys/fs/cgroup/cpuacct
192+
ls -la /sys/fs/cgroup/cpu,cpuacct
193+
ls -la /sys/fs/cgroup/memory
198194
TERM=xterm-256color ./worker.test -test.v=true -test.coverprofile \
199195
profile3.cov -test.run TestCgroup
200196
cgexec -g "*:/" bash -c "echo 0 > /sys/fs/cgroup/systemd/tasks; exec sudo -u $CUSER env USECURCGROUP=1 TERM=xterm-256color cgexec -g cpu,memory:tunasync ./worker.test -test.v=true -test.coverprofile profile4.cov -test.run TestCgroup"

0 commit comments

Comments
 (0)