Skip to content

Commit

Permalink
fix: Fix expected error message in tests_misc.yml
Browse files Browse the repository at this point in the history
Different versions of blivet return a different error message when
trying to create a filesystem with invalid parameters.

On Fedora 39 and older:
"Failed to commit changes to disk: (FSError('format failed: 1'),
'/dev/mapper/foo-test1')"

On Fedora 40 and newer:
"Failed to commit changes to disk: Process reported exit code 1:
mke2fs: invalid block size - 512\n"
  • Loading branch information
vojtechtrefny committed Jun 4, 2024
1 parent 31fff76 commit f73c73a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/tests_misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@
include_tasks: verify-role-failed.yml
vars:
__storage_failed_regex: >-
Failed to commit changes to disk.*FSError.*format failed:
1.*/dev/mapper/foo-test1
Failed to commit changes to disk.*(FSError.*format failed:
1.*/dev/mapper/foo-test1|
Process reported exit code 1: mke2fs: invalid block size - 512)
__storage_failed_msg: >-
Unexpected behavior when creating ext4 filesystem with invalid
parameter
Expand Down

0 comments on commit f73c73a

Please sign in to comment.