test/test_targets: Remove build directory before build.
This commit is contained in:
parent
8d91489756
commit
3622661fa8
|
@ -27,6 +27,7 @@ class TestTargets(unittest.TestCase):
|
||||||
# Test platforms with simple design.
|
# Test platforms with simple design.
|
||||||
for name in platforms:
|
for name in platforms:
|
||||||
with self.subTest(platform=name):
|
with self.subTest(platform=name):
|
||||||
|
os.system("rm -rf build")
|
||||||
cmd = """\
|
cmd = """\
|
||||||
python3 -m litex_boards.targets.simple litex_boards.platforms.{} \
|
python3 -m litex_boards.targets.simple litex_boards.platforms.{} \
|
||||||
--no-compile-software \
|
--no-compile-software \
|
||||||
|
@ -48,6 +49,7 @@ python3 -m litex_boards.targets.simple litex_boards.platforms.{} \
|
||||||
# Test targets.
|
# Test targets.
|
||||||
for name in targets:
|
for name in targets:
|
||||||
with self.subTest(target=name):
|
with self.subTest(target=name):
|
||||||
|
os.system("rm -rf build")
|
||||||
cmd = """\
|
cmd = """\
|
||||||
python3 -m litex_boards.targets.{} \
|
python3 -m litex_boards.targets.{} \
|
||||||
--no-compile-software \
|
--no-compile-software \
|
||||||
|
|
Loading…
Reference in New Issue