Skip to content

Commit 016e1b1

Browse files
committed
tmp: make seccomp test work without new docker container
this commit should be dropped once we have rebuilt the devctr. Signed-off-by: Patrick Roy <[email protected]>
1 parent e7b1180 commit 016e1b1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/integration_tests/build/test_seccomp_no_redundant_rules.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ def test_redundant_seccomp_rules():
2222
).stdout.strip()
2323
target = f"{arch}-unknown-linux-musl"
2424

25+
utils.check_output(f"rustup component add rust-src --toolchain {nightly_toolchain}")
26+
utils.check_output(f"rustup target add {target} --toolchain {nightly_toolchain}")
27+
2528
utils.check_output(
2629
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'
2730
)

tools/test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ fi
3434
say "Copy CI artifacts to /srv, so hardlinks work"
3535
cp -ruvf build/img /srv
3636

37+
apt-get update && apt-get install python3-seccomp
38+
cp /usr/lib/python3/dist-packages/seccomp.cpython-312-$(uname -m)-linux-gnu.so /opt/venv/lib/python3.12/site-packages/
39+
3740
cd tests
3841
export PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} --pdbcls=IPython.terminal.debugger:TerminalPdb"
3942

0 commit comments

Comments
 (0)