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 52dfc04 commit b03eef7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ jobs:
# go_version: ${{ needs.go-versions.outputs.unstable }}
steps:
- uses: actions/checkout@v3
- name: Set cores to get stored as "X.core"
run: sudo bash -c 'echo "%e.core" > /proc/sys/kernel/core_pattern'
- name: Set cores to get stored as "core"
run: sudo bash -c 'echo "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
if: failure()
uses: mxschmitt/action-tmate@v3
# - name: Setup tmate session
# if: failure()
# uses: mxschmitt/action-tmate@v3
- name: Clean up test containers
if: always()
run: make test-containers-clean "CEPH_VERSION=${{ matrix.ceph_version }}"
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" "${pkg}.test.core" -ex bt -ex q | cat
gdb "${pkg}.test" core.* -ex bt -ex q | cat
mkdir -p "${RESULTS_DIR}"
mv "${pkg}.test" "${pkg}.test.core" "${RESULTS_DIR}"
mv "${pkg}.test" core.* "${RESULTS_DIR}"
ret=$(($?+ret))
grep -v "^mode: count" "${pkg}.cover.out" >> "cover.out"
return ${ret}
Expand Down

0 comments on commit b03eef7

Please sign in to comment.