]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/398: filter out extra string from newer mv
authorXiong Murphy Zhou <xzhou@redhat.com>
Fri, 9 Nov 2018 04:19:13 +0000 (12:19 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 11 Nov 2018 14:40:44 +0000 (22:40 +0800)
commit3dc717c148c08015186afd1211ea6d7d87feddbc
treecd5afd0210ffcdc388eef5ca9acfc8a6555d300d
parent96c40c9fc4e118f42c1ac35ff5f14c467e7734a7
generic/398: filter out extra string from newer mv

mv command produces a leading string "renamed" from some time.
This breaks generic/398. Adding a _filter_mv to filter it out.
Tested this patch on Fedora 28.

sh-4.2$ rpm -qf /usr/bin/mv
coreutils-8.22-23.el7.x86_64
sh-4.2$ mv -v 1 2
‘1’ -> ‘2’
sh-4.2$

h-4.4# rpm -qf /usr/bin/mv
coreutils-8.30-5.el8.x86_64
sh-4.4# mv -v 1 2
renamed '1' -> '2'
sh-4.4#

igned-off-by: Xiong Murphy Zhou <xzhou@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/filter
tests/generic/398