Fail test early if spice simulator is not found.

This commit is contained in:
Matt Guthaus 2018-01-26 12:47:32 -08:00
parent 1dc7752429
commit 50107636a0
4 changed files with 9 additions and 0 deletions

View File

@ -18,6 +18,8 @@ class timing_sram_test(unittest.TestCase):
OPTS.check_lvsdrc = False
OPTS.spice_name="hspice"
OPTS.analytical_delay = False
self.assertTrue(OPTS.spice_exe)
# This is a hack to reload the characterizer __init__ with the spice version
import characterizer
reload(characterizer)

View File

@ -18,6 +18,9 @@ class timing_setup_test(unittest.TestCase):
OPTS.check_lvsdrc = False
OPTS.spice_name="hspice"
OPTS.analytical_delay = False
self.assertTrue(OPTS.spice_exe)
# This is a hack to reload the characterizer __init__ with the spice version
import characterizer
reload(characterizer)
from characterizer import setup_hold

View File

@ -18,6 +18,8 @@ class timing_sram_test(unittest.TestCase):
OPTS.check_lvsdrc = False
OPTS.spice_name="ngspice"
OPTS.analytical_delay = False
self.assertTrue(OPTS.spice_exe)
# This is a hack to reload the characterizer __init__ with the spice version
import characterizer
reload(characterizer)

View File

@ -18,6 +18,8 @@ class timing_setup_test(unittest.TestCase):
OPTS.check_lvsdrc = False
OPTS.spice_name="ngspice"
OPTS.analytical_delay = False
self.assertTrue(OPTS.spice_exe)
# This is a hack to reload the characterizer __init__ with the spice version
import characterizer
reload(characterizer)