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:
Rodrigo Campos
2022-03-15 11:03:52 +01:00
parent 51e607f2cd
commit 9f9acd1a0c
+2 -1
View File
@@ -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",