]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/pybind/rbd: don't ignore from_snapshot in check_diff() 54950/head
authorIlya Dryomov <idryomov@gmail.com>
Sun, 10 Dec 2023 16:01:24 +0000 (17:01 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 26 Dec 2023 20:51:47 +0000 (21:51 +0100)
commit3bc18668a3e09c544f662803bc470aebcfc7f6a8
treee6481930479095f0ba525f1e2f65e367d6c626a0
parent51676d7ae91bbf5cfc250b2f5ec739299717d833
test/pybind/rbd: don't ignore from_snapshot in check_diff()

Despite the test in test_diff_iterate() being correct, it started
failing:

    >       check_diff(self.image, 0, IMG_SIZE, 'snap1', [(0, 512, False)])
    ...
    a = [], b = [(0, 512, False)]
    ...
    >       assert a == b
    E       AssertionError

This is because check_diff() drops 'snap1' argument on the floor and
passes None to image.diff_iterate() instead.  This goes back to 2013,
see commit e88fe3cbbc8f ("rbd.py: add some missing functions").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit f8ced6d1fe667864bee224104c23b62a2c1c0bfc)
src/test/pybind/test_rbd.py