mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-07 00:26:56 -04:00
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>
(cherry picked from commit ab0169ee39)
This commit is contained in:
committed by
Simon McVittie
parent
734047a1d7
commit
b543933ce1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user