mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-09-04 00:40:09 +02:00
Add unit test times to output.
This commit is contained in:
@@ -12,11 +12,19 @@ from globals import OPTS
|
||||
import debug
|
||||
import pdb
|
||||
import traceback
|
||||
import time
|
||||
|
||||
|
||||
class openram_test(unittest.TestCase):
|
||||
""" Base unit test that we have some shared classes in. """
|
||||
|
||||
def setUp(self):
|
||||
self.start_time = time.time()
|
||||
|
||||
def tearDown(self):
|
||||
duration = time.time() - self.start_time
|
||||
print('%s: %.3fs' % (self.id(), duration))
|
||||
|
||||
def fail(self, msg):
|
||||
import inspect
|
||||
s = inspect.stack()
|
||||
|
||||
Reference in New Issue
Block a user