From 3622661fa8919ec0e800dff809db8f86d77edd37 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 9 Sep 2021 11:36:18 +0200 Subject: [PATCH] test/test_targets: Remove build directory before build. --- test/test_targets.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_targets.py b/test/test_targets.py index e73e31d..00d4115 100644 --- a/test/test_targets.py +++ b/test/test_targets.py @@ -27,6 +27,7 @@ class TestTargets(unittest.TestCase): # Test platforms with simple design. for name in platforms: with self.subTest(platform=name): + os.system("rm -rf build") cmd = """\ python3 -m litex_boards.targets.simple litex_boards.platforms.{} \ --no-compile-software \ @@ -48,6 +49,7 @@ python3 -m litex_boards.targets.simple litex_boards.platforms.{} \ # Test targets. for name in targets: with self.subTest(target=name): + os.system("rm -rf build") cmd = """\ python3 -m litex_boards.targets.{} \ --no-compile-software \