diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2022-06-24 20:03:50 +0300 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2022-06-24 20:03:50 +0300 |
commit | 90da15b7d14ffdd1ad14ab15468c2cd3a7f9a837 (patch) | |
tree | 4c7ba2b56036c5807838255e3c73e94e2e3f07db /tests/test_bindfs.rb | |
parent | 458763aa26097fa064feec60ef45f29ffc736196 (diff) | |
download | bindfs-90da15b7d14ffdd1ad14ab15468c2cd3a7f9a837.tar.gz |
Revert "Skip test if unshare was not possible"
This reverts commit 3a1d2a1e265c43971f78ed1845920539ed00fd35.
Diffstat (limited to 'tests/test_bindfs.rb')
-rwxr-xr-x | tests/test_bindfs.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_bindfs.rb b/tests/test_bindfs.rb index 4ebd8f3..3243b7f 100755 --- a/tests/test_bindfs.rb +++ b/tests/test_bindfs.rb @@ -853,10 +853,9 @@ if `uname`.strip == 'Linux' && `unshare --help`.include?("--user") root_testenv("--gid-offset=10000", :title => "setgid and gid-offset") do system("chmod g+s src") - if system("unshare --map-root-user --user mkdir mnt/dir") - assert { File.stat("src/dir").gid == 0 } - assert { File.stat("mnt/dir").gid == 10000 } - end + system("unshare --map-root-user --user mkdir mnt/dir") + assert { File.stat("src/dir").gid == 0 } + assert { File.stat("mnt/dir").gid == 10000 } end end |