diff --git a/test/run b/test/run index 0757223d53cc..0ecd98fc9e8a 100755 --- a/test/run +++ b/test/run @@ -60,7 +60,7 @@ case "${TEST_SCENARIO:=}" in PREPARE_OPTS="$PREPARE_OPTS --quick" ;;& *other*) - RUN_OPTS="$RUN_OPTS $(echo "$ALL_TESTS" | grep -Ev "$RE_NETWORKING|$RE_STORAGE|$RE_EXPENSIVE")" + RUN_OPTS="$RUN_OPTS TestJelle.test_storaged_avaibility" ;;& esac diff --git a/test/verify/check-connection b/test/verify/check-connection index e8fdc6c3a07c..d468b49e7b13 100755 --- a/test/verify/check-connection +++ b/test/verify/check-connection @@ -26,6 +26,21 @@ import time import testlib +class TestJelle(testlib.MachineCase): + def test_storaged_avaibility(self): + m = self.machine + import json + data = m.execute(""" +busctl -j get-property org.freedesktop.UDisks2 /org/freedesktop/UDisks2/Manager org.freedesktop.UDisks2.Manager SupportedFilesystems + """).strip() + filesystems = json.loads(data) + for fs in filesystems['data']: + data = m.execute(f""" +busctl call org.freedesktop.UDisks2 /org/freedesktop/UDisks2/Manager org.freedesktop.UDisks2.Manager CanResize s "{fs}" || true + """).strip() + print(fs, data) + + @testlib.skipDistroPackage() class TestConnection(testlib.MachineCase): def setUp(self):