Use the release jailer in the integration test
The integration test for seccomp builds a mini jailer. The release
binary should be run instead of the debug one.
Aligned the mini jailer code generated by the test.
@@ -11,7 +11,7 @@ def tmp_jailer():
JAILER_SRCDIR = path.normpath(path.join(getcwd(), '../src/bin/demo_jailer/'))
""" Source directory for a new binary that ingests the `seccomp` crate. """
- JAILER_BIN = path.normpath(path.join(getcwd(), '../target/x86_64-unknown-linux-musl/debug/demo_jailer'))
+ JAILER_BIN = path.normpath(path.join(getcwd(), '../target/x86_64-unknown-linux-musl/release/demo_jailer'))
""" Name of the mini jailer binary. """
makedirs(JAILER_SRCDIR)
@@ -42,7 +42,7 @@ def test_seccomp_ls(tmp_jailer):
JAILED_BIN = '/bin/ls'
""" Path to the `ls` binary, which attempts to execute `SYS_access`, blacklisted for Firecracker."""
- run(['cargo', 'build', '--bin', 'demo_jailer'])
+ run(['cargo', 'build', '--release', '--bin', 'demo_jailer'])
assert(path.exists(tmp_jailer))
""" Compile the mini jailer. """
