mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-09-05 17:06:12 +02:00
Add output explaining error for not finding simulator in unit tests.
This commit is contained in:
@@ -23,7 +23,9 @@ class timing_sram_test(unittest.TestCase):
|
||||
import characterizer
|
||||
reload(characterizer)
|
||||
from characterizer import delay
|
||||
self.assertTrue(OPTS.spice_exe)
|
||||
if not OPTS.spice_exe:
|
||||
self.error("Could not find {} simulator.".format(OPTS.spice_name))
|
||||
self.assertTrue(OPTS.spice_exe)
|
||||
|
||||
import sram
|
||||
|
||||
|
||||
@@ -23,7 +23,10 @@ class timing_setup_test(unittest.TestCase):
|
||||
import characterizer
|
||||
reload(characterizer)
|
||||
from characterizer import setup_hold
|
||||
self.assertTrue(OPTS.spice_exe)
|
||||
if not OPTS.spice_exe:
|
||||
self.error("Could not find {} simulator.".format(OPTS.spice_name))
|
||||
self.assertTrue(OPTS.spice_exe)
|
||||
|
||||
|
||||
import sram
|
||||
import tech
|
||||
|
||||
@@ -23,7 +23,9 @@ class timing_sram_test(unittest.TestCase):
|
||||
import characterizer
|
||||
reload(characterizer)
|
||||
from characterizer import delay
|
||||
self.assertTrue(OPTS.spice_exe)
|
||||
if not OPTS.spice_exe:
|
||||
self.error("Could not find {} simulator.".format(OPTS.spice_name))
|
||||
self.assertTrue(OPTS.spice_exe)
|
||||
|
||||
import sram
|
||||
|
||||
|
||||
@@ -23,7 +23,9 @@ class timing_setup_test(unittest.TestCase):
|
||||
import characterizer
|
||||
reload(characterizer)
|
||||
from characterizer import setup_hold
|
||||
self.assertTrue(OPTS.spice_exe)
|
||||
if not OPTS.spice_exe:
|
||||
self.error("Could not find {} simulator.".format(OPTS.spice_name))
|
||||
self.assertTrue(OPTS.spice_exe)
|
||||
|
||||
import sram
|
||||
import tech
|
||||
|
||||
Reference in New Issue
Block a user