These 2 root checks fail because my USER doesn't have /sbin nor /usr/sbin in PATH.

SKIP: cp/cp-mv-enotsup-xattr (exit: 77)
=======================================

+ dd if=/dev/zero of=noxattr.bin bs=8192 count=200
+ mkdir noxattr
+ mkfs -t ext2 -F noxattr.bin
./cp/cp-mv-enotsup-xattr: line 41: mkfs: command not found
+ skip_ 'failed to create ext2 file system'
+ warn_ 'cp-mv-enotsup-xattr: skipped test: failed to create ext2 file system'

SKIP: rm/read-only (exit: 77)
=============================
...
+ dd if=/dev/zero of=blob bs=8192 count=200
+ mkdir mnt
+ mkfs -t ext2 -F blob
./rm/read-only: line 31: mkfs: command not found
+ skip_ 'failed to create ext2 file system'
+ warn_ 'read-only: skipped test: failed to create ext2 file system'


If started with
  sudo env PATH="/sbin:$PATH" NON_ROOT_USERNAME=$USER make -k check-root
then they pass.

Should we
* add /sbin to PATH for the whole check-root test suite, or
* add it only for these 2 tests, or
* enhance the README file for this issue?

Have a nice day,
Berny

Reply via email to