Skip to content

Commit

Permalink
test: check if we have CanResize everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
jelly committed Oct 13, 2023
1 parent 7f8e92f commit 6bbde07
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions test/verify/check-connection
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ import time
import testlib


class TestJelle(testlib.MachineCase):
def test_storaged_avaibility(self):
m = self.machine
import json

Check notice

Code scanning / CodeQL

Module is imported more than once Note test

This import of module json is redundant, as it was previously imported
on line 21
.
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):
Expand Down

0 comments on commit 6bbde07

Please sign in to comment.