Skip to content

Commit 6f93abe

Browse files
committed
Fix the '-c' option of gen-rzx-tests.py
1 parent 9bcd59c commit 6f93abe

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

tools/rzx/gen-rzx-tests.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,13 @@ def test_{name}(self):
8383
)
8484
"""
8585

86-
FOOTER = """
86+
FOOTER = r"""
8787
if __name__ == '__main__':
88-
import nose2, subprocess
89-
if {c}:
90-
subprocess.run(('make', '-C', SKOOLKIT_HOME, 'cmods'))
88+
import nose2
89+
from skoolkit import CSimulator
90+
if {c} and CSimulator is None:
91+
print('CSimulator not found. Run the following command and try again:\n\n make -C $SKOOLKIT_HOME cmods')
92+
sys.exit(1)
9193
sys.argv.extend(('--plugin=nose2.plugins.mp', '-N', '{processes}', '-B'))
9294
nose2.main()
9395
"""

0 commit comments

Comments
 (0)