aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2015-11-15 18:05:49 +0000
committerMartin Pärtel <martin.partel@gmail.com>2015-11-15 18:05:49 +0000
commit495c9738fde1f6d9d70f47c6f0b362a8f1a26876 (patch)
treefa0de334e60c0d48d3e47436058853d8ccebc521 /tests
parent865cc827485b2ea2701d18ae9559530a17d46db9 (diff)
downloadbindfs-495c9738fde1f6d9d70f47c6f0b362a8f1a26876.tar.gz
Fixed some root tests to use `nobody_group`.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_bindfs.rb8
1 files changed, 4 insertions, 4 deletions
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')