From 1310ba87c0f9045b9ddb96b73816e82a811d4f1b Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Sun, 28 Apr 2019 23:37:47 +0300 Subject: Fixed vagrant tests. Removed Vagrant test for Ubuntu 12.04, added 18.04. --- tests/test_bindfs.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test_bindfs.rb') diff --git a/tests/test_bindfs.rb b/tests/test_bindfs.rb index 9e5d381..a6ecf2c 100755 --- a/tests/test_bindfs.rb +++ b/tests/test_bindfs.rb @@ -764,12 +764,13 @@ end # Pull Request #73 if `uname`.strip == 'Linux' && + `uname -r`.strip =~ /^[456789]/ && # 3.x kernels used by CentOS 7 and older don't support all `unshare` options despite the userspace binary supporting them `which unshare` != '' && `unshare --help`.include?("--map-root-user") && `unshare --help`.include?("--user") root_testenv("--gid-offset=10000", :title => "setgid and gid-offset") do system("chmod g+s src") - system("unshare --map-root-user --user #{$nobody} mkdir mnt/dir") + system("unshare --map-root-user --user mkdir mnt/dir") assert { File.stat("src/dir").gid == 0 } assert { File.stat("mnt/dir").gid == 10000 } end -- cgit v1.2.3