test.py: add 'no_traceback' opt to spawn()

This commit is contained in:
The MMGen Project 2021-06-24 17:15:23 +00:00
commit 188df57e81
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 4 additions and 3 deletions

View file

@ -649,7 +649,8 @@ class TestSuiteRunner(object):
no_output = False,
msg_only = False,
no_msg = False,
cmd_dir = 'cmds' ):
cmd_dir = 'cmds',
no_traceback = False ):
desc = self.ts.test_name if opt.names else self.gm.dpy_data[self.ts.test_name][1]
if extra_desc: desc += ' ' + extra_desc
@ -665,7 +666,7 @@ class TestSuiteRunner(object):
args = [cmd] + passthru_opts + self.ts.extra_spawn_args + args
if opt.traceback:
if opt.traceback and not no_traceback:
args = ['scripts/traceback_run.py'] + args
if g.platform == 'win':

View file

@ -314,7 +314,7 @@ class TestSuiteRegtest(TestSuiteBase,TestSuiteShared):
icls = MMGenWallet
fn = get_file_with_ext(self._user_dir(user),icls.ext)
t = self.spawn('mmgen-tool',['get_subseed',subseed_idx,'wallet='+fn],no_msg=True)
t = self.spawn('mmgen-tool',['get_subseed',subseed_idx,'wallet='+fn],no_msg=True,no_traceback=True)
t.passphrase(icls.desc,rt_pw)
sid = t.read().strip()[:8]
self.usr_subsids[user][subseed_idx] = sid