diff --git a/tests/integration_tests/build/test_seccomp_no_redundant_rules.py b/tests/integration_tests/build/test_seccomp_no_redundant_rules.py index dbf29976a9a..0f9416cd87d 100644 --- a/tests/integration_tests/build/test_seccomp_no_redundant_rules.py +++ b/tests/integration_tests/build/test_seccomp_no_redundant_rules.py @@ -22,6 +22,9 @@ def test_redundant_seccomp_rules(): ).stdout.strip() target = f"{arch}-unknown-linux-musl" + utils.check_output(f"rustup component add rust-src --toolchain {nightly_toolchain}") + utils.check_output(f"rustup target add {target} --toolchain {nightly_toolchain}") + utils.check_output( f'RUSTFLAGS="-C relocation-model=static -C link-args=-no-pie" cargo +{nightly_toolchain} -Zbuild-std=panic_abort,std build --release --target {target} -p firecracker' ) diff --git a/tools/test.sh b/tools/test.sh index 0bf67a65666..9d077e59216 100755 --- a/tools/test.sh +++ b/tools/test.sh @@ -34,6 +34,9 @@ fi say "Copy CI artifacts to /srv, so hardlinks work" cp -ruvf build/img /srv +apt-get update && apt-get install python3-seccomp rustfilt +cp /usr/lib/python3/dist-packages/seccomp.cpython-312-$(uname -m)-linux-gnu.so /opt/venv/lib/python3.12/site-packages/ + cd tests export PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} --pdbcls=IPython.terminal.debugger:TerminalPdb"