test-gdb: move to pure python calls

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-22 00:00:00 +00:00
parent d923c606f3
commit 3ce152f61c
10 changed files with 182 additions and 100 deletions

View File

@@ -23,8 +23,6 @@ class GdbTestcase:
'''
self.prompt = '\(gdb\) '
self.source_path = source_path
self.print_cmd(cmd)
cmd = self.strip_newlines(cmd)
import pexpect
self.child = pexpect.spawn(
cmd[0],
@@ -198,10 +196,11 @@ See: https://github.com/cirosantilli/linux-kernel-module-cheat#gdb-builtin-cpu-s
cmd.extend(['-ex', 'lx-symbols {}'.format(self.env['kernel_modules_build_subdir']), LF])
cmd.extend(after)
if self.env['test']:
self.sh.print_cmd(cmd)
GdbTestcase(
self.env['source_path'],
test_script_path,
cmd,
self.sh.strip_newlines(cmd),
verbose=self.env['verbose'],
)
else: