test-override: Assert that --nofilesystem with suffix yields a warning

This was added as part of implementing the :reset suffix.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie
2022-01-16 17:33:22 +00:00
committed by Simon McVittie
parent 813e1f0b3b
commit ab0169ee39

View File

@@ -187,6 +187,13 @@ assert_semicolon_list_contains "$filesystems" "xdg-config:ro"
assert_not_semicolon_list_contains "$filesystems" "!xdg-config"
assert_not_semicolon_list_contains "$filesystems" "!xdg-config:ro"
# --nofilesystem=...:rw => warning
# Warnings need to be made temporarily non-fatal here.
e=0
G_DEBUG= ${FLATPAK} override --user --nofilesystem=/foo:rw org.test.Hello 2>log || e=$?
assert_file_has_content log "Filesystem suffix \"rw\" is not applicable for --nofilesystem"
assert_streq "$e" 0
# --filesystem=...:bar => warning
# Warnings need to be made temporarily non-fatal here.
e=0