diff --git a/.github/pyinstaller/pyinstaller.spec b/.github/pyinstaller/pyinstaller.spec index 7d90e966..da3943be 100644 --- a/.github/pyinstaller/pyinstaller.spec +++ b/.github/pyinstaller/pyinstaller.spec @@ -17,6 +17,7 @@ a = Analysis( # when invoking pyinstaller from the project root, # this gets invoked from the directory of the spec file, # i.e. ./.github/pyinstaller + ("../../assets", "assets"), ("../../rules", "rules"), ("../../sigs", "sigs"), ("../../cache", "cache"), diff --git a/tests/test_rules.py b/tests/test_rules.py index 965c7093..a8f3f8e3 100644 --- a/tests/test_rules.py +++ b/tests/test_rules.py @@ -1026,8 +1026,7 @@ def test_translate_com_features(): capa.features.common.Bytes(b"[\x94\x18\xe0\x86\xaa\x08@\x9b\xd4gw\xa1\xe4\x0c\x11", f"IID_{com_name} as bytes"), capa.features.common.StringFactory("e018945b-aa86-4008-9bd4-6777a1e40c11", f"IID_{com_name} as GUID string"), ] - for child in r.statement.get_children(): - assert child in com_features + assert set(com_features) == set(r.statement.get_children()) def test_invalid_com_features():