summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/chown.test4
-rw-r--r--testsuite/devices.test4
2 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/chown.test b/testsuite/chown.test
index d238a8fe..6f73a709 100644
--- a/testsuite/chown.test
+++ b/testsuite/chown.test
@@ -40,9 +40,9 @@ case $0 in
case `get_testuid` in
'') ;; # If "id" failed, try to continue...
0) ;;
- *) if [ -f /usr/bin/fakeroot ]; then
+ *) if [ -e "$FAKEROOT_PATH" ]; then
echo "Let's try re-running the script under fakeroot..."
- exec /usr/bin/fakeroot /bin/sh "$0"
+ exec "$FAKEROOT_PATH" "$SHELL_PATH" "$0"
fi
;;
esac
diff --git a/testsuite/devices.test b/testsuite/devices.test
index a85954b1..1f6f068b 100644
--- a/testsuite/devices.test
+++ b/testsuite/devices.test
@@ -54,9 +54,9 @@ case $0 in
case `get_testuid` in
'') ;; # If "id" failed, try to continue...
0) ;;
- *) if [ -f /usr/bin/fakeroot ]; then
+ *) if [ -e "$FAKEROOT_PATH" ]; then
echo "Let's try re-running the script under fakeroot..."
- exec /usr/bin/fakeroot /bin/sh $RUNSHFLAGS "$0"
+ exec "$FAKEROOT_PATH" "$SHELL_PATH" $RUNSHFLAGS "$0"
fi
test_skipped "Rsync needs root/fakeroot for device tests"
;;