Skip to content

Commit 0bc0ab6

Browse files
committed
Updated the test of stream_rand_xorshift for the latest iverilog.
1 parent 06b3490 commit 0bc0ab6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tests/extension/thread_/stream_rand_xorshift/test_thread_stream_rand_xorshift.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def test(request):
1212
simtype = request.config.getoption('--sim')
1313

1414
rslt = thread_stream_rand_xorshift.run(filename=None, simtype=simtype,
15-
outputfile=os.path.splitext(os.path.basename(__file__))[0] + '.out')
15+
outputfile=os.path.splitext(os.path.basename(__file__))[0] + '.out')
1616

17-
verify_rslt = rslt.splitlines()[-1]
17+
verify_rslt = [line for line in rslt.splitlines() if line.startswith('# verify:')][0]
1818
assert(verify_rslt == '# verify: PASSED')

tests/extension/thread_/stream_rand_xorshift/thread_stream_rand_xorshift.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,7 @@ def run(filename='tmp.v', simtype='iverilog', outputfile=None):
136136

137137
sim = simulation.Simulator(test, sim=simtype)
138138
rslt = sim.run(outputfile=outputfile)
139-
lines = rslt.splitlines()
140-
if simtype == 'verilator' and lines[-1].startswith('-'):
141-
rslt = '\n'.join(lines[:-1])
139+
142140
return rslt
143141

144142

0 commit comments

Comments
 (0)