Skip to content

Commit

Permalink
Merge pull request #1306 from aleasto/exfat-label
Browse files Browse the repository at this point in the history
integration-test: Fix change label test with exfatprogs 1.2.5
  • Loading branch information
tbzatek authored Aug 14, 2024
2 parents a238e6f + feedac2 commit b15478c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tests/integration-test
Original file line number Diff line number Diff line change
Expand Up @@ -1047,10 +1047,14 @@ class FS(UDisksTestCase):
l = r'n"a$m\"e' + fs_type
if fs_type == 'vfat':
# VFAT does not support some characters
# Also, the maximum length of the label is 11 characters (22 bytes)
self.assertRaises(GLib.GError, fs.call_set_label_sync, l, no_options, None)
l = r'n@a$me'
elif fs_type == 'exfat':
l = r'n"a$m\"exft'
# EXFAT does not support some characters, but exfatprogs < 1.2.5 will still allow them.
# We cannot assert that the call would throw without knowing the exfatprogs version.
# Also, the maximum length of the label is 11 characters (22 bytes)
l = r'n@a$me'
try:
fs.call_set_label_sync(l, no_options, None)
except GLib.GError as e:
Expand Down

0 comments on commit b15478c

Please sign in to comment.