Skip to content

Commit 80b2971

Browse files
committed
add tmate
1 parent 79fd5a5 commit 80b2971

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,11 @@ jobs:
247247
rsync \
248248
uidmap
249249
250+
sudo apt-get install -qq lcov
251+
250252
- name: Test
251253
env:
252-
CC: ${{ matrix.compiler }}
254+
CC: gcc
253255
run: |
254256
# Install LXC on the system
255257
sudo meson install -C build
@@ -263,6 +265,9 @@ jobs:
263265
# Undo default ACLs from Github
264266
sudo setfacl -b -R /home
265267
268+
export GCOV_PREFIX=/tmp/gcov
269+
export GCOV_PREFIX_STRIP=6
270+
266271
# Run the testsuite
267272
git clone --depth=1 https://github.com/lxc/lxc-ci
268273
sudo -E lxc-ci/deps/lxc-exercise
@@ -274,3 +279,11 @@ jobs:
274279
with:
275280
token: ${{ secrets.CODECOV_TOKEN }}
276281
verbose: true
282+
283+
- name: Tmate debugging session
284+
if: ${{ failure() }}
285+
timeout-minutes: 60
286+
uses: mxschmitt/action-tmate@c0afd6f790e3a5564914980036ebf83216678101 # v3.23
287+
with:
288+
# Never allow public SSH access
289+
limit-access-to-actor: true

src/tests/lxc-test-apparmor-mount

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ run_cmd() {
3535
sudo -i -u $TUSER \
3636
env http_proxy=${http_proxy:-} https_proxy=${https_proxy:-} \
3737
XDG_RUNTIME_DIR=/run/user/$(id -u $TUSER) ASAN_OPTIONS=${ASAN_OPTIONS:-} \
38-
UBSAN_OPTIONS=${UBSAN_OPTIONS:-} $*
38+
UBSAN_OPTIONS=${UBSAN_OPTIONS:-} GCOV_PREFIX=${GCOV_PREFIX:-} GCOV_PREFIX_STRIP=${GCOV_PREFIX_STRIP:-} $*
3939
}
4040

4141
DONE=0

src/tests/lxc-test-unpriv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ run_cmd() {
8282
sudo -i -u $TUSER \
8383
env http_proxy=${http_proxy:-} https_proxy=${https_proxy:-} \
8484
XDG_RUNTIME_DIR=/run/user/$(id -u $TUSER) ASAN_OPTIONS=${ASAN_OPTIONS:-} \
85-
UBSAN_OPTIONS=${UBSAN_OPTIONS:-} $*
85+
UBSAN_OPTIONS=${UBSAN_OPTIONS:-} GCOV_PREFIX=${GCOV_PREFIX:-} GCOV_PREFIX_STRIP=${GCOV_PREFIX_STRIP:-} $*
8686
}
8787

8888
# create a test user

0 commit comments

Comments
 (0)