Skip to content

Commit b56bf9d

Browse files
authored
Update rpyc example in docs/testing.md (#1041)
1 parent 8395f0b commit b56bf9d

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/coverage.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
17-
with:
18-
fetch-depth: '0'
1917
- name: Setup
2018
run: |
2119
sudo apt-get -qq update
@@ -36,8 +34,8 @@ jobs:
3634
new_score=$(cat docs/coverage/gef_py.html | grep pc_cov | sed 's?.*<span class="pc_cov">\([^%]*\)%</span>?\1?g')
3735
diff_score=$(python -c "print(${new_score} - ${current_score})")
3836
commit=${{ github.event.pull_request.head.sha }}
39-
include_tests=$(git diff ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} --compact-summary | egrep --count '^ tests/' || 0)
40-
include_docs=$(git diff ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} --compact-summary | egrep --count '^ docs/' || 0)
37+
include_tests=$((git diff ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} --compact-summary | egrep --count '^ tests/') || echo 0)
38+
include_docs=$((git diff ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} --compact-summary | egrep --count '^ docs/') || echo 0)
4139
echo "commit=${commit}" >> $GITHUB_OUTPUT
4240
echo "new_coverage_score=${new_score}" >> $GITHUB_OUTPUT
4341
echo "current_coverage_score=${current_score}" >> $GITHUB_OUTPUT

.github/workflows/generate-docs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
token: ${{ secrets.GITHUB_TOKEN }}
1919
- name: Install pre-requisite
2020
run: |
21+
sudo apt update
2122
sudo apt install gdb-multiarch python3 python3-dev python3-wheel python3-setuptools git cmake gcc g++ pkg-config libglib2.0-dev gdbserver qemu-user -y
2223
version=$(gdb -q -nx -ex 'pi print(f"{sys.version_info.major}.{sys.version_info.minor}", end="")' -ex quit)
2324
python${version} -m pip install --requirement docs/requirements.txt --upgrade

docs/testing.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ using a regular Python REPL:
120120
```text
121121
>>> import rpyc
122122
>>> c = rpyc.connect("localhost", 4444)
123-
>>> gdb = c.root._gdb
124-
>>> gef = c.root._gef
123+
>>> gdb = c.root.gdb
124+
>>> gef = c.root.gef
125125
# We can now fully control the remote GDB
126126
>>> gdb.execute("file /bin/ls")
127127
>>> gdb.execute("start")

0 commit comments

Comments
 (0)