aboutsummaryrefslogtreecommitdiff
path: root/debug/gdbserver.py
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2019-07-26 13:59:53 -0700
committerTim Newsome <tim@sifive.com>2019-07-26 13:59:53 -0700
commit33b9551cf931f6fb4466466ef1749a5c591dc4a6 (patch)
tree51a9d9f3ad898f44a84e7a49251320d007882043 /debug/gdbserver.py
parentf700891858948725058d1aa2e035dd6450d36d3a (diff)
downloadriscv-tests-misc.zip
riscv-tests-misc.tar.gz
riscv-tests-misc.tar.bz2
Make newer version of pylint happy.misc
Diffstat (limited to 'debug/gdbserver.py')
-rwxr-xr-xdebug/gdbserver.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py
index 7a51bc3..2fa5dfd 100755
--- a/debug/gdbserver.py
+++ b/debug/gdbserver.py
@@ -13,7 +13,7 @@ import testlib
from testlib import assertEqual, assertNotEqual, assertIn, assertNotIn
from testlib import assertGreater, assertRegexpMatches, assertLess
from testlib import GdbTest, GdbSingleHartTest, TestFailed
-from testlib import assertTrue
+from testlib import assertTrue, TestNotApplicable
MSTATUS_UIE = 0x00000001
MSTATUS_SIE = 0x00000002
@@ -535,7 +535,7 @@ class DebugBreakpoint(DebugTest):
class Hwbp1(DebugTest):
def test(self):
if self.hart.instruction_hardware_breakpoint_count < 1:
- return 'not_applicable'
+ raise TestNotApplicable
if not self.hart.honors_tdata1_hmode:
# Run to main before setting the breakpoint, because startup code
@@ -557,7 +557,7 @@ class Hwbp1(DebugTest):
class Hwbp2(DebugTest):
def test(self):
if self.hart.instruction_hardware_breakpoint_count < 2:
- return 'not_applicable'
+ raise TestNotApplicable
self.gdb.command("delete")
self.gdb.hbreak("main")
@@ -799,7 +799,7 @@ class MulticoreRunAllHaltOne(GdbTest):
def test(self):
if not self.gdb.one_hart_per_gdb():
- return 'not_applicable'
+ raise TestNotApplicable
# Run harts in reverse order
for h in reversed(self.target.harts):
@@ -827,7 +827,7 @@ class MulticoreRtosSwitchActiveHartTest(GdbTest):
def test(self):
if self.gdb.one_hart_per_gdb():
- return 'not_applicable'
+ raise TestNotApplicable
# Set breakpoint near '_start' label to increase the chances of a
# situation when all harts hit breakpoint immediately and
@@ -856,7 +856,7 @@ class SmpSimultaneousRunHalt(GdbTest):
def test(self):
if self.gdb.one_hart_per_gdb() or not self.server.smp():
- return 'not_applicable'
+ raise TestNotApplicable
old_mtime = set()
for _ in range(5):
@@ -1226,7 +1226,7 @@ class PrivChange(PrivTest):
"""Test that the core's privilege level actually changes."""
if 0 not in self.supported:
- return 'not_applicable'
+ raise TestNotApplicable
self.gdb.b("main")
self.gdb.c()