mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-10-31 20:39:48 +00:00
feat(tests): skip SD card tests for TR - allowing to run unittests for TR
[no changelog]
This commit is contained in:
parent
171c615dfa
commit
a1a60ed320
@ -1,7 +1,9 @@
|
|||||||
from common import *
|
from common import *
|
||||||
|
|
||||||
from trezorio import fatfs, sdcard
|
from trezor import utils
|
||||||
|
|
||||||
|
if utils.USE_SD_CARD:
|
||||||
|
from trezorio import fatfs, sdcard
|
||||||
|
|
||||||
|
|
||||||
class TestTrezorIoFatfs(unittest.TestCase):
|
class TestTrezorIoFatfs(unittest.TestCase):
|
||||||
@ -226,4 +228,5 @@ class TestTrezorIoFatfsAndSdcard(unittest.TestCase):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
if utils.USE_SD_CARD:
|
||||||
|
unittest.main()
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
from common import *
|
from common import *
|
||||||
|
|
||||||
from trezor import io
|
from trezor import io, utils
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class TestTrezorIoSdcard(unittest.TestCase):
|
class TestTrezorIoSdcard(unittest.TestCase):
|
||||||
@ -44,4 +43,5 @@ class TestTrezorIoSdcard(unittest.TestCase):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
if utils.USE_SD_CARD:
|
||||||
|
unittest.main()
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
from common import *
|
from common import *
|
||||||
|
|
||||||
from trezor import io, sdcard
|
from trezor import io, sdcard, utils
|
||||||
|
|
||||||
|
if utils.USE_SD_CARD:
|
||||||
fatfs = io.fatfs
|
fatfs = io.fatfs
|
||||||
|
|
||||||
|
|
||||||
class TestTrezorSdcard(unittest.TestCase):
|
class TestTrezorSdcard(unittest.TestCase):
|
||||||
@ -89,4 +89,5 @@ class TestTrezorSdcard(unittest.TestCase):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
if utils.USE_SD_CARD:
|
||||||
|
unittest.main()
|
||||||
|
Loading…
Reference in New Issue
Block a user