From a21e57d7f6f920753600a6eb58ecf641ce8adb8f Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Thu, 14 Jan 2021 18:06:41 -0800 Subject: [PATCH] tests/int/hooks.bats: skip earlier This particular test downloads and unpacks debian from setup(), but then in many cases the actual test is skipped because it requires root and no_systemd. Let's skip it earlier. Signed-off-by: Kir Kolyshkin --- tests/integration/hooks.bats | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/integration/hooks.bats b/tests/integration/hooks.bats index 358ad6c85..7f1401f65 100644 --- a/tests/integration/hooks.bats +++ b/tests/integration/hooks.bats @@ -12,6 +12,8 @@ function setup() { umount "$LIBPATH"/$HOOKLIBCR.1.0.0 &>/dev/null || true umount "$LIBPATH"/$HOOKLIBCC.1.0.0 &>/dev/null || true + requires root no_systemd + teardown_debian setup_debian } @@ -25,9 +27,6 @@ function teardown() { } @test "runc run (hooks library tests)" { - requires root - requires no_systemd - # setup some dummy libs gcc -shared -Wl,-soname,librunc-hooks-create-runtime.so.1 -o "$HOOKLIBCR.1.0.0" gcc -shared -Wl,-soname,librunc-hooks-create-container.so.1 -o "$HOOKLIBCC.1.0.0"