diff options
author | Tim Newsome <tim@sifive.com> | 2023-07-20 12:06:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-20 12:06:21 -0700 |
commit | 81f5ad4253d0966343985ac5282ca9e4730650a7 (patch) | |
tree | 20b9e36e8544d719aa5d4d1831e3539d32de7f30 | |
parent | 0ab6b90ad637848662408981583c7fe556cc506b (diff) | |
parent | 49ea5933fe54084b2bad4a76637559f087f578c4 (diff) | |
download | riscv-tests-81f5ad4253d0966343985ac5282ca9e4730650a7.zip riscv-tests-81f5ad4253d0966343985ac5282ca9e4730650a7.tar.gz riscv-tests-81f5ad4253d0966343985ac5282ca9e4730650a7.tar.bz2 |
Merge pull request #496 from riscv-software-src/pylint_workflow
debug: Only run pylint if debug files changed.
-rw-r--r-- | .github/workflows/debug.yml | 7 | ||||
-rwxr-xr-x | debug/gdbserver.py | 7 |
2 files changed, 9 insertions, 5 deletions
diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 29ca5b2..7b6beb4 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -1,6 +1,9 @@ -on: pull_request +on: + pull_request: + paths: + - 'debug/**' -name: Check Code Style (checkpatch) +name: Check Debug Code Style (pylint) jobs: check: diff --git a/debug/gdbserver.py b/debug/gdbserver.py index 53eeffa..3b9a661 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -1562,6 +1562,7 @@ class DownloadTest(GdbTest): # assertIn("0xbead", output) class PrivTest(GdbSingleHartTest): + """Base class for a few tests that change privilege levels.""" compile_args = ("programs/priv.S", ) def setup(self): # pylint: disable=attribute-defined-outside-init @@ -1588,8 +1589,8 @@ class PrivTest(GdbSingleHartTest): pass class PrivRw(PrivTest): + """Test reading/writing priv.""" def test(self): - """Test reading/writing priv.""" self.write_nop_program(4) for privilege in range(4): self.gdb.p(f"$priv={privilege}") @@ -1600,9 +1601,9 @@ class PrivRw(PrivTest): assertEqual(actual, privilege) class PrivChange(PrivTest): + """Test that the core's privilege level actually changes when the debugger + writes it.""" def test(self): - """Test that the core's privilege level actually changes.""" - if 0 not in self.supported: raise TestNotApplicable |