diff --git a/tests.unit/database/test_inf_table.py b/tests.unit/database/test_inf_table.py index a0bc9bb6..996622b1 100644 --- a/tests.unit/database/test_inf_table.py +++ b/tests.unit/database/test_inf_table.py @@ -9,7 +9,7 @@ """Tests for build an inf file table.""" from pathlib import Path -from common import Tree, empty_tree # noqa: F401 +from common import Tree, empty_tree, write_file # noqa: F401 from edk2toollib.database import Edk2DB from edk2toollib.database.tables import InfTable from edk2toollib.uefi.edk2.path_utilities import Edk2Path @@ -47,6 +47,12 @@ def test_valid_inf(empty_tree: Tree): sources_ia32 = sources_ia32, sources_x64 = sources_x64, ) + + (empty_tree.library_folder / "IA32").mkdir() + (empty_tree.library_folder / "X64").mkdir() + for file in sources + sources_ia32 + sources_x64: + write_file((empty_tree.library_folder / file).resolve(), "FILLER") + db.parse({}) rows = list(db.connection.cursor().execute("SELECT path, library_class FROM inf"))