diff options
author | Wayne Davison <wayned@samba.org> | 2011-09-20 13:10:02 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2011-09-20 13:17:42 -0700 |
commit | 439d5d89295a27ba57a11b17633601d8c5d7f8e6 (patch) | |
tree | 450406bc3fd0cc5329401a3bfa8df889aa1e55e0 /testsuite | |
parent | de219101ed2d1eca188c37f9a06b9764c4ca528e (diff) | |
download | rsync-439d5d89295a27ba57a11b17633601d8c5d7f8e6.tar.gz rsync-439d5d89295a27ba57a11b17633601d8c5d7f8e6.tar.bz2 rsync-439d5d89295a27ba57a11b17633601d8c5d7f8e6.zip |
Better fakeroot support helps Solaris.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/chown.test | 4 | ||||
-rw-r--r-- | testsuite/devices.test | 4 |
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" ;; |