summaryrefslogtreecommitdiff
path: root/testsuite/devices.test
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/devices.test')
-rw-r--r--testsuite/devices.test4
1 files changed, 2 insertions, 2 deletions
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"
;;