mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
tests: Improve name of seccomp notify test
There was a typo and instead of "empty" we should have used "non-empty". Let's add a small sentence explaining the intent (like other tests in this file) and let's highlight what we expect to happen in this test (to ignore the listenerPath). Fixes: #3415 Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
This commit is contained in:
@@ -92,7 +92,8 @@ function scmp_act_notify_template() {
|
||||
[ "$status" -eq 0 ]
|
||||
}
|
||||
|
||||
@test "runc run [seccomp] (empty listener path)" {
|
||||
# Ignore listenerPath if the profile doesn't use seccomp notify actions.
|
||||
@test "runc run [seccomp] (ignore listener path if no notify act)" {
|
||||
update_config ' .process.args = ["/bin/sh", "-c", "mkdir /dev/shm/foo && stat /dev/shm/foo"]
|
||||
| .linux.seccomp = {
|
||||
"defaultAction":"SCMP_ACT_ALLOW",
|
||||
|
||||
Reference in New Issue
Block a user