From 495c9738fde1f6d9d70f47c6f0b362a8f1a26876 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Sun, 15 Nov 2015 18:05:49 +0000 Subject: Fixed some root tests to use `nobody_group`. --- tests/test_bindfs.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/test_bindfs.rb b/tests/test_bindfs.rb index ef53eaf..a8d3bc0 100755 --- a/tests/test_bindfs.rb +++ b/tests/test_bindfs.rb @@ -169,8 +169,8 @@ def run_chown_chgrp_test_case(chown_flag, chgrp_flag, expectations) mntfile = 'mnt/file' tests = [ lambda { chown('nobody', nil, mntfile) }, - lambda { chown(nil, nobody_group, mntfile) }, - lambda { chown('nobody', nobody_group, mntfile) } + lambda { chown(nil, $nobody_group, mntfile) }, + lambda { chown('nobody', $nobody_group, mntfile) } ] for testcase, expect in tests.zip expectations @@ -266,7 +266,7 @@ testenv("--chmod-filter=g-w,o-rwx") do assert { File.stat('src/file').mode & 0777 == 0640 } end -root_testenv("--map=nobody/root:@nobody/@root") do +root_testenv("--map=nobody/root:@#{nobody_group}/@root") do touch('src/file') chown('nobody', nobody_group, 'src/file') @@ -287,7 +287,7 @@ root_testenv("--map=nobody/root:@nobody/@root") do assert { File.stat('mnt/newdir').gid == 0 } end -root_testenv("--map=@nobody/@root") do +root_testenv("--map=@#{nobody_group}/@root") do touch('src/file') chown('nobody', nobody_group, 'src/file') -- cgit v1.2.3