import subprocess
from utils import *


@all_files_in_dir('wavedrom_0')
def test_wavedrom_0(datafiles):
    with datafiles.as_cwd():
        subprocess.check_call(['python3', 'wavedrom-test.py'])


@all_files_in_dir('wavedrom_1')
def test_wavedrom_1(datafiles):
    with datafiles.as_cwd():
        for s in get_simulators():
            subprocess.check_call(['runSVUnit', '-s', s, '-w'])
            expect_testrunner_pass('run.log')

@@ -223,16 +223,44 @@
 rom_1')%0A
+@all_available_simulators()%0A
 def test
@@ -272,32 +272,43 @@
 drom_1(datafiles
+, simulator
 ):%0A    with data
@@ -327,47 +327,8 @@
 ():%0A
-        for s in get_simulators():%0A    
     
@@ -374,16 +374,24 @@
  '-s', s
+imulator
 , '-w'%5D)
@@ -391,20 +391,16 @@
  '-w'%5D)%0A
-    
         

Update wavedrom tests to get simulators via fixture