Skip to content

Commit

Permalink
[gdb] Restore gdb.rst and manually disable doctests from inside Docke…
Browse files Browse the repository at this point in the history
…r container
  • Loading branch information
heapcrash committed Feb 25, 2021
1 parent 56ed89d commit 025f797
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/source/gdb.rst
@@ -0,0 +1,11 @@
.. testsetup:: *

from pwn import *
context.arch = 'amd64'
context.terminal = [os.path.join(os.path.dirname(pwnlib.__file__), 'gdb_faketerminal.py')]

:mod:`pwnlib.gdb` --- Working with GDB
======================================

.. automodule:: pwnlib.gdb
:members:
4 changes: 4 additions & 0 deletions travis/docker/doctest2
Expand Up @@ -24,6 +24,10 @@ if [ -n "$TARGET" ]; then
echo "DOCTEST TARGET is $TARGET"
fi

# GDB tests currently don't work inside Docker for unknown reasons.
# Disable these tests until we can get them working.
echo > ~/pwntools/docs/source/gdb.rst

export PWNLIB_NOTERM=1
coverage-2.7 run -m sphinx -b doctest $HOME/pwntools/docs/source $HOME/pwntools/docs/build/doctest $TARGET

4 changes: 4 additions & 0 deletions travis/docker/doctest3
Expand Up @@ -24,6 +24,10 @@ if [ -n "$TARGET" ]; then
echo "DOCTEST TARGET is $TARGET"
fi

# GDB tests currently don't work inside Docker for unknown reasons.
# Disable these tests until we can get them working.
echo > ~/pwntools/docs/source/gdb.rst

export PWNLIB_NOTERM=1
coverage3 run -m sphinx -b doctest $HOME/pwntools/docs/source $HOME/pwntools/docs/build/doctest $TARGET

0 comments on commit 025f797

Please sign in to comment.