mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-09 02:33:00 -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>
This commit is contained in:
committed by
Simon McVittie
parent
813e1f0b3b
commit
ab0169ee39
@@ -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