From: Michael Tremer Date: Mon, 25 Sep 2023 13:58:33 +0000 (+0000) Subject: tests: Bind-mount the test command to the jail X-Git-Tag: 0.9.30~1654 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97ddb3548d1b7579d4857aa412fc7e3f6117e0f7;p=pakfire.git tests: Bind-mount the test command to the jail Signed-off-by: Michael Tremer --- diff --git a/tests/testsuite.c b/tests/testsuite.c index 519e0f2bd..06714d4ed 100644 --- a/tests/testsuite.c +++ b/tests/testsuite.c @@ -25,6 +25,7 @@ #include "testsuite.h" #include +#include #include #include @@ -70,7 +71,7 @@ static int test_run(int i, struct test* t) { } // Copy command into environment - r = pakfire_copy_in(t->pakfire, TEST_STUB_COMMAND, "/command"); + r = pakfire_bind(t->pakfire, TEST_STUB_COMMAND, "/command", 0); if (r) { LOG("ERROR: Could not copy command: %m\n"); goto ERROR;