Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Javagedes committed Sep 15, 2023
1 parent b99b3b8 commit 4353ab7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests.unit/database/test_inf_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"))
Expand Down

0 comments on commit 4353ab7

Please sign in to comment.