From 6bbde07a698d989456b411b268ccd3003bacb6a9 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Fri, 13 Oct 2023 13:56:36 +0200 Subject: [PATCH] test: check if we have CanResize everywhere --- test/run | 2 +- test/verify/check-connection | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) 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):