Skip to content

Commit

Permalink
disable static analysis seccomp test on aarch64
Browse files Browse the repository at this point in the history
The nightly toolchain in our devctr is too old to successfully compile
non-PIE, statically linked aarch64 executable. I have manually verified
newer nightlies to work (2024-11-16 and newer), however our nightly
toolchain is dictated by kani, so we need to wait for kani to release a
new version that updates past this toolchain.

Therefore, temporarily disable the test on aarch64.

Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
  • Loading branch information
roypat committed Dec 10, 2024
1 parent 2a04665 commit a1f5447
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import platform
from pathlib import Path

import pytest

from framework import utils
from framework.static_analysis import (
determine_unneeded_seccomp_rules,
Expand All @@ -13,6 +15,10 @@
)


@pytest.mark.skipif(
platform.machine() != "x86_64",
reason="aarch64 nightly toolchain does not support flags needed to compile analyzable binary yet",
)
def test_redundant_seccomp_rules():
"""Test that fails if static analysis determines redundant seccomp rules"""
arch = platform.processor()
Expand Down

0 comments on commit a1f5447

Please sign in to comment.