Revert "Skip test if unshare was not possible"

This reverts commit 3a1d2a1e26.
master
Martin Pärtel 3 months ago
parent 458763aa26
commit 90da15b7d1
  1. 7
      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

Loading…
Cancel
Save