From: Tim Newsome Date: Tue, 20 Sep 2016 16:47:11 +0000 (-0700) Subject: Minor tweaks to trigger tests for openocd. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=923f62fc1dec4244180c00e0b1f8a845aeaa90e8;p=riscv-tests.git Minor tweaks to trigger tests for openocd. --- diff --git a/debug/gdbserver.py b/debug/gdbserver.py index 75ab292..bb82c4b 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -1,12 +1,13 @@ #!/usr/bin/env python +import argparse +import binascii import os +import random +import re import sys -import argparse import tempfile import time -import random -import binascii import traceback import testlib @@ -223,6 +224,10 @@ def assertTrue(a): if not a: raise TestFailed("%r is not True" % a) +def assertRegexpMatches(text, regexp): + if not re.search(regexp, text): + raise TestFailed("can't find %r in %r" % (regexp, text)) + class SimpleRegisterTest(GdbTest): def check_reg(self, name): a = random.randrange(1<