From 44e6eaf750f336315535c5898c1557ccfb0797b7 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Sun, 7 Sep 2014 22:57:23 +0100 Subject: Tests: use sudo instead of su. BSD su is different, apparently. --- tests/test_bindfs.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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 } -- cgit v1.2.3