]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
fstests: which has been deprecated by Debian
authorDave Chinner <dchinner@redhat.com>
Mon, 30 Aug 2021 01:14:01 +0000 (11:14 +1000)
committerEryu Guan <guaneryu@gmail.com>
Sun, 5 Sep 2021 13:08:06 +0000 (21:08 +0800)
commita1b220feba1dd6eb3cad423599694e4d7459abcb
treeca1439408ce4d8beea81ca834c99908e4265a2f9
parent6d2f9108631d4026bf70cb1a9892d657360b31b5
fstests: which has been deprecated by Debian

This patch is brought to you by the Department That Hates Users.

The latest debian unstable release is now causing a bunch of new
test failures because they have deprecated the which command.

Rather than make everyone jump through hoops chasing problems with
'which' while debian decides to how to package at least three
variants of 'which' - each which will different semantics, behaviour
and support - as alternatives users then have to opt into, let's
just remove the remaining uses of the shell independent 'which'
command and replace them with bash builtin 'type -P' operations.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc
src/fill2fs
tests/ext4/006
tests/generic/128
tests/generic/452
tests/xfs/293
tests/xfs/505
tests/xfs/514
tests/xfs/515