From 90da15b7d14ffdd1ad14ab15468c2cd3a7f9a837 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Fri, 24 Jun 2022 20:03:50 +0300 Subject: Revert "Skip test if unshare was not possible" This reverts commit 3a1d2a1e265c43971f78ed1845920539ed00fd35. --- tests/test_bindfs.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3