fstests: Make ./new work for non-root user
authorJan Kara <jack@suse.cz>
Tue, 29 May 2018 16:51:19 +0000 (18:51 +0200)
committerEryu Guan <guaneryu@gmail.com>
Sun, 3 Jun 2018 14:16:15 +0000 (22:16 +0800)
commit141bd37a36857984bb80f8534810951002dcdf13
tree13c28fc03fc91b3d012a28a82df171e0cf23c875
parentc4f104cdf420075674bdbedf190f052571af9c20
fstests: Make ./new work for non-root user

Currently 'new' script sources common/config which tries to find
mkfs and fails if not found (which is likely for non-root user).
This is inconvenient as development usually does not happen as root.
In fact the vast majority of setup in common/config and common/rc is
not necessary for 'new'. Split out the necessary bits into new
common/test_names and use it in 'new'. Cleanup common/rc and
common/config now that they're only used from 'check' and 'setup'.

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
check
common/config
common/rc
common/test_names [new file with mode: 0644]
new