]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa: test first-damage.py with binary file name
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 11 May 2023 16:20:27 +0000 (12:20 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 28 Jun 2023 15:32:16 +0000 (11:32 -0400)
Specifically, one which cannot be decoded as utf8.

Fixes: https://tracker.ceph.com/issues/59716
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 1d3a549ec2dddf02129ff20cf50411294e64faaa)

qa/workunits/fs/damage/test-first-damage.sh

index e13f1ef13e0daf3529086736ea14f97ab70cf24b..57447b957d789a357b8d79eb06172e09c96a2c0f 100755 (executable)
@@ -20,6 +20,7 @@ function create {
   DIR_INODE=$(stat -c '%i' dir)
   touch dir/a
   touch dir/"a space"
+  touch -- $(printf 'dir/\xff')
   mkdir dir/.snap/1
   mkdir dir/.snap/2
   # two snaps