diff options
Diffstat (limited to 'tests/rm')
-rwxr-xr-x | tests/rm/fail-2eperm | 4 | ||||
-rwxr-xr-x | tests/rm/isatty | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/rm/fail-2eperm b/tests/rm/fail-2eperm index 9162892ee..fa2f43227 100755 --- a/tests/rm/fail-2eperm +++ b/tests/rm/fail-2eperm @@ -31,10 +31,10 @@ touch a/b || framework_failure_ # Try to ensure that $NON_ROOT_USERNAME can access # the required version of rm. -rm_version=` +rm_version=$( setuidgid $NON_ROOT_USERNAME env PATH="$PATH" rm --version | sed -n '1s/.* //p' -` +) case $rm_version in $PACKAGE_VERSION) ;; *) skip_ "cannot access just-built rm as user $NON_ROOT_USERNAME";; diff --git a/tests/rm/isatty b/tests/rm/isatty index b1e558b66..f28653cc8 100755 --- a/tests/rm/isatty +++ b/tests/rm/isatty @@ -44,7 +44,6 @@ kill $pid > /dev/null 2>&1 cat > exp <<\EOF rm: remove write-protected regular empty file 'f'? x EOF -#` # Append an 'x' and a newline. echo x >> out |