remove "local" bashism from a few scripts
[oweals/busybox.git] / testsuite / makedevs.tests
index eb51410b33a44d43d14ae34460b8757f28b1861c..b51fe079845b159094c58633293662bb2b42770e 100755 (executable)
@@ -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" \