X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=testsuite%2Fmakedevs.tests;h=b51fe079845b159094c58633293662bb2b42770e;hb=bca4ea8b68403e6f751341b82c65937f14590679;hp=eb51410b33a44d43d14ae34460b8757f28b1861c;hpb=0ef64bdb40c54681e8dd5ab8df42ac88e4ab1d4a;p=oweals%2Fbusybox.git diff --git a/testsuite/makedevs.tests b/testsuite/makedevs.tests index eb51410b3..b51fe0798 100755 --- a/testsuite/makedevs.tests +++ b/testsuite/makedevs.tests @@ -4,6 +4,11 @@ . ./testing.sh +test x"`id -u`" = x"0" || { + echo "SKIPPED: makedevs (must be root to test this)" + exit 0 +} + unset LANG unset LC_COLLATE unset LC_ALL @@ -20,7 +25,7 @@ FILTER_LS2="sed -e 's/, */,/g' -e 's/ */ /g' | cut -d' ' -f 1-4,9-" rm -rf makedevs.testdir mkdir makedevs.testdir -optional FEATURE_MAKEDEVS_TABLE FEATURE_FIND_NOT FEATURE_FIND_TYPE FEATURE_LS_RECURSIVE FEATURE_LS_SORTFILES +optional FEATURE_MAKEDEVS_TABLE FEATURE_FIND_NOT FEATURE_FIND_TYPE FEATURE_LS_RECURSIVE FEATURE_LS_SORTFILES FEATURE_LS_TIMESTAMPS testing "makedevs -d ../makedevs.device_table.txt ." \ "(cd makedevs.testdir && makedevs -d ../makedevs.device_table.txt . 2>&1); find makedevs.testdir ! -type d | sort | xargs ls -lnR | $FILTER_LS" \