]> git.ipfire.org Git - pakfire.git/commitdiff
tests: makefile: Set architecture to make creating a package successful
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 20 May 2021 16:56:20 +0000 (16:56 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 20 May 2021 16:56:20 +0000 (16:56 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/libpakfire/makefile.c

index 730b61aead02b29d2e5bbb877b705e158ae29f05..5d32164327baac94d186d1a3302c67bd94351d10 100644 (file)
@@ -102,6 +102,9 @@ static int test_packages(const struct test* t) {
                PAKFIRE_PARSER_FLAGS_EXPAND_COMMANDS);
        ASSERT(parser);
 
+       // Set some architecture
+       pakfire_parser_set(parser, NULL, "DISTRO_ARCH", "x86_64");
+
        // Load macros
        int r = load_macros(parser);
        if (r)