From ab0169ee39fe72eb0cd6544e10e094cfe8cd0466 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 16 Jan 2022 17:33:22 +0000 Subject: [PATCH] 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 --- tests/test-override.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test-override.sh b/tests/test-override.sh index c22f9b0e..735f811e 100755 --- a/tests/test-override.sh +++ b/tests/test-override.sh @@ -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