diff options
Diffstat (limited to 'tests/init.cfg')
-rw-r--r-- | tests/init.cfg | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/init.cfg b/tests/init.cfg index 17713d924..7bcd512a3 100644 --- a/tests/init.cfg +++ b/tests/init.cfg @@ -235,9 +235,9 @@ rwx_to_mode_() s='s/S/@/;s/s/x@/;s/@/s/' t='s/T/@/;s/t/x@/;s/@/t/' - u=`echo $rwx|sed 's/^.\(...\).*/,u=\1/;s/-//g;s/^,u=$//;'$s` - g=`echo $rwx|sed 's/^....\(...\).*/,g=\1/;s/-//g;s/^,g=$//;'$s` - o=`echo $rwx|sed 's/^.......\(...\).*/,o=\1/;s/-//g;s/^,o=$//;'$s';'$t` + u=$(echo $rwx|sed 's/^.\(...\).*/,u=\1/;s/-//g;s/^,u=$//;'$s) + g=$(echo $rwx|sed 's/^....\(...\).*/,g=\1/;s/-//g;s/^,g=$//;'$s) + o=$(echo $rwx|sed 's/^.......\(...\).*/,o=\1/;s/-//g;s/^,o=$//;'$s';'$t) echo "=$u$g$o" } @@ -259,7 +259,7 @@ require_selinux_() # Independent of whether SELinux is enabled system-wide, # the current file system may lack SELinux support. - case `ls -Zd .` in + case $(ls -Zd .) in '? .'|'unlabeled .') skip_ "this system (or maybe just" \ "the current file system) lacks SELinux support" @@ -316,7 +316,7 @@ require_membership_in_two_groups_() { test $# = 0 || framework_failure_ - groups=${COREUTILS_GROUPS-`(id -G || /usr/xpg4/bin/id -G) 2>/dev/null`} + groups=${COREUTILS_GROUPS-$( (id -G || /usr/xpg4/bin/id -G) 2>/dev/null)} case "$groups" in *' '*) ;; *) skip_ 'requires membership in two groups @@ -389,7 +389,7 @@ require_sparse_support_() # NTFS requires 128K before a hole appears in a sparse file. t=sparse.$$ dd bs=1 seek=128K of=$t < /dev/null 2> /dev/null - set x `du -sk $t` + set x $(du -sk $t) kb_size=$2 rm -f $t if test $kb_size -ge 128; then @@ -447,7 +447,7 @@ working_umask_or_skip_() umask 022 touch file1 file2 chmod 644 file2 - perms=`ls -l file1 file2 | sed 's/ .*//' | uniq` + perms=$(ls -l file1 file2 | sed 's/ .*//' | uniq) rm -f file1 file2 case $perms in @@ -463,7 +463,7 @@ working_umask_or_skip_() # an initial delay of .1 second and call it at most 6 times # with a max delay of 3.2s (doubled each time), or a total of 6.3s # Note ensure you do _not_ quote the parameter to GNU sleep in -# your function, as it may contain separate values that `sleep` +# your function, as it may contain separate values that sleep # needs to accumulate. retry_delay_() { |