diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2014-09-07 22:57:23 +0100 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2014-09-07 22:57:23 +0100 |
commit | 44e6eaf750f336315535c5898c1557ccfb0797b7 (patch) | |
tree | 55df28f5ca9c00396a47a8b99a6ba96fe97d039d /tests/test_bindfs.rb | |
parent | 77d068e0c58b6dc2299ffde597845406ecccbfa4 (diff) | |
download | bindfs-44e6eaf750f336315535c5898c1557ccfb0797b7.tar.gz |
Tests: use sudo instead of su.
BSD su is different, apparently.
Diffstat (limited to 'tests/test_bindfs.rb')
-rwxr-xr-x | tests/test_bindfs.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_bindfs.rb b/tests/test_bindfs.rb index 54521f0..6c3fb0b 100755 --- a/tests/test_bindfs.rb +++ b/tests/test_bindfs.rb @@ -73,9 +73,9 @@ end root_testenv("", :title => "--create-as-user should be default for root") do chmod(0777, 'src') - `su -c 'touch mnt/file' nobody` - `su -c 'mkdir mnt/dir' nobody` - `su -c 'ln -sf /tmp/foo mnt/lnk' nobody` + `sudo -u nobody -g nogroup touch mnt/file` + `sudo -u nobody -g nogroup mkdir mnt/dir` + `sudo -u nobody -g nogroup ln -sf /tmp/foo mnt/lnk` assert { File.stat('mnt/file').uid == nobody_uid } assert { File.stat('mnt/file').gid == nogroup_gid } |