Skip to content

Commit

Permalink
fixed pylint
Browse files Browse the repository at this point in the history
Signed-off-by: hugsy <hugsy@blah.cat>
  • Loading branch information
hugsy committed Jul 1, 2021
1 parent 1e9b7de commit 686ff82
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/run-tests.yml
Expand Up @@ -26,6 +26,7 @@ jobs:

- name: Cache trinity libs
uses: actions/cache@v2
id: cache-libs
env:
cache-name: cache-trinity-libs-and-python-modules
with:
Expand All @@ -48,10 +49,14 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: Build 3rd party deps
- name: Refresh environment
run: |
sudo apt-get update
sudo apt-get install gdb-multiarch python3-dev python3-pip python3-wheel python3-setuptools git cmake gcc g++ pkg-config libglib2.0-dev
sudo apt-get install -y gdb-multiarch python3-dev python3-pip python3-wheel python3-setuptools git cmake gcc g++ pkg-config libglib2.0-dev
- name: Compile Capstone/Keystone/Unicorn and install Python modules
if: steps.cache-libs.outputs.cache-hit != 'true'
run: |
wget -O /tmp/update-trinity.sh https://github.com/hugsy/stuff/raw/master/update-trinity.sh
chmod +x /tmp/update-trinity.sh
python3 -c 'import capstone, keystone, unicorn' || /tmp/update-trinity.sh
Expand Down
4 changes: 2 additions & 2 deletions tests/runtests.py
Expand Up @@ -691,7 +691,7 @@ def test_config_show_opcodes_size(self):
class TestNonRegressionUnit(GefUnitTestGeneric):
"""Non-regression tests."""

def test_registers_show_registers_in_correct_order(self):
def test_registers_show_registers_in_correct_order(self): #pylint: disable=invalid-name
"""Ensure the registers are printed in the correct order (PR #670)."""
cmd = "registers"
x64_registers_in_correct_order = ["$rax", "$rbx", "$rcx", "$rdx", "$rsp", "$rbp", "$rsi", "$rdi", "$rip", "$r8", "$r9", "$r10", "$r11", "$r12", "$r13", "$r14", "$r15", "$eflags", "$cs", ]
Expand All @@ -701,7 +701,7 @@ def test_registers_show_registers_in_correct_order(self):
return


def test_context_correct_registers_refresh_with_frames(self):
def test_context_correct_registers_refresh_with_frames(self): #pylint: disable=invalid-name
"""Ensure registers are correctly refreshed when changing frame (PR #668)"""
lines = gdb_run_silent_cmd("registers", after=["frame 5", "registers"], target="/tmp/nested.out").splitlines()
rips = [ x for x in lines if x.startswith("$rip") ]
Expand Down

0 comments on commit 686ff82

Please sign in to comment.