aboutsummaryrefslogtreecommitdiff
path: root/tests/test_rom.py
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-10-02 20:31:11 +0100
committerJuan J. Martinez <jjm@usebox.net>2021-10-02 20:31:13 +0100
commit2d4ddb1820122cd8e7d42185f2ea80330c63d4f6 (patch)
tree0b82a0c52f9df85961265365b8c5e4e949b5e83c /tests/test_rom.py
parent5763dc7aa0b0fc44d9776f582b692d086f8b5b6d (diff)
downloadubox-msx-lib-2d4ddb1820122cd8e7d42185f2ea80330c63d4f6.tar.gz
ubox-msx-lib-2d4ddb1820122cd8e7d42185f2ea80330c63d4f6.zip
Introduced config.env
One config to rule the whole build system and the tests.
Diffstat (limited to 'tests/test_rom.py')
-rwxr-xr-xtests/test_rom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_rom.py b/tests/test_rom.py
index a2148e1..d980dad 100755
--- a/tests/test_rom.py
+++ b/tests/test_rom.py
@@ -2,13 +2,13 @@
import unittest
import struct
-from os import path
+from os import path, environ
class TestRom(unittest.TestCase):
"""Test that the generated game ROM is correct."""
- ROM_SIZE = 0x8000
+ ROM_SIZE = int(environ.get("ROM_MAX", 0), 16)
@classmethod
def setUpClass(cls):