Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ansiwen committed Sep 26, 2023
1 parent b8009f0 commit 52dfc04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ jobs:
# go_version: ${{ needs.go-versions.outputs.unstable }}
steps:
- uses: actions/checkout@v3
- name: Set cores to get stored as "core"
run: sudo bash -c 'echo "core" > /proc/sys/kernel/core_pattern'
- name: Set cores to get stored as "X.core"
run: sudo bash -c 'echo "%e.core" > /proc/sys/kernel/core_pattern'
- name: Run tests
run: make test-container "CEPH_VERSION=${{ matrix.ceph_version }}" "GO_VERSION=${{ matrix.go_version }}" "RESULTS_DIR=$PWD/_results" "ENTRYPOINT_ARGS=--no-cover --test-pkg rados --test-run TestRadosTestSuite/TestAAA"
- name: Setup tmate session
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ test_pkg() {
go test -c -v "${testargs[@]}" "./${pkg}"
show "./${pkg}.test"
sleep 5
gdb "${pkg}.test" core -ex bt -ex q | cat
gdb "${pkg}.test" "${pkg}.test.core" -ex bt -ex q | cat
mkdir -p "${RESULTS_DIR}"
mv "${pkg}.test" core "${RESULTS_DIR}"
mv "${pkg}.test" "${pkg}.test.core" "${RESULTS_DIR}"
ret=$(($?+ret))
grep -v "^mode: count" "${pkg}.cover.out" >> "cover.out"
return ${ret}
Expand Down

0 comments on commit 52dfc04

Please sign in to comment.